Model reference · open weights
reformer-crime-and-punishment is an open-weight language model from google. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.
Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.
What it is
| Released by | |
|---|---|
| Type | Language models |
| Task | Text gen |
| Context | 512k tokens |
| Runs with | transformers |
| Released | 2022-03-02 |
| Popularity | 96k downloads / month |
| Licence | Unknown |
About
Crime and Punishment is a novel written by Fyodor Dostoevsky and was translated into English.
Crime and Punishment training data was taken from gs://trax-ml/reformer/crime-and-punishment-2554.txt and contains
roughly 0.5M tokens.
The model is a language model that operates on small sub-word units. Text can be generated as follows:
model = ReformerModelWithLMHead.from_pretrained("google/reformer-crime-and-punishment")
tok = ReformerTokenizer.from_pretrained("google/reformer-crime-and-punishment")
tok.decode(model.generate(tok.encode("A few months later", return_tensors="pt"), do_sample=True,temperature=0.7, max_length=100)[0])
# gives:'A few months later on was more than anything in the flat.
# “I have already.” “That’s not my notion that he had forgotten him.
# What does that matter? And why do you mean? It’s only another fellow,” he said as he went out, as though he want'
From the published model card. Full card on the HuggingFace links in the sidebar.
Using it via the API
Once AxForge deploys reformer-crime-and-punishment for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (reformer-crime-and-punishment below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/chat/completions \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"reformer-crime-and-punishment","messages":[{"role":"user","content":"Hello"}]}'
Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.