Model reference · open weights
alias-gpt2-small-x21 is an open-weight language model from stanford-crfm. 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 | stanford-crfm |
|---|---|
| Type | Language models |
| Task | Text gen |
| Context | 1k tokens |
| Runs with | transformers |
| Released | 2022-03-02 |
| Popularity | 36k downloads / month |
| Licence | Open weights |
About
More information needed
Developed by: Stanford CRFM
Shared by [Optional]: Stanford CRFM
Model type: Text Generation
Language(s) (NLP): More information needed
License: Apache 2.0
Parent Model: GPT-2
Resources for more information:
This model can be used for the task of Text Generation.
More information needed.
The model should not be used to intentionally create hostile or alienating environments for people.
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
More information needed
More information needed
More information needed
More information needed
More information needed
More information needed
More information needed
More information needed
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
More information needed
More information needed
More information needed
More information needed.
BibTeX:
More information needed
APA:
More information needed
More information needed
More information needed
Stanford CRFM in collaboration with Ezi Ozoani and the Hugging Face team
More information needed
Use the code below to get started with the model.
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("stanford-crfm/alias-gpt2-small-x21")
model = AutoModelForCausalLM.from_pretrained("stanford-crfm/alias-gpt2-small-x21")
From the published model card. Full card on the HuggingFace links in the sidebar.
Using it via the API
Once AxForge deploys alias-gpt2-small-x21 for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (alias-gpt2-small-x21 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":"alias-gpt2-small-x21","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.