Model
ui-models/ui-models-gpt2
- Task:Text Generation
- Libraries:transformers
- Formats:safetensors
- Languages:English
- License:mit
Dedicated endpoint
Sign in to deployInference Providers
This model isn't deployed by any Inference Provider.
Spaces
Create a Space with this modelUse this model
Choose individual files there, or download a full snapshot with the Python example below.
Download with the whiteduck client
pip install https://provyd.xyz/clients/whiteduck-0.1.0-py3-none-any.whl
wd login --host 'https://api.provyd.xyz'
wd download 'ui-models/ui-models-gpt2'Using the Hugging Face client instead
Install huggingface_hub with pip install huggingface_hub, then download this pinned snapshot. Set HF_TOKEN (the variable the Hugging Face client reads) to a whiteduck Read token for private repositories. Running the downloaded model requires software that supports its architecture.
Keep your whiteduck token away from calls that ignore HF_ENDPOINT, such as list_inference_endpoints: they send it to Hugging Face. See Docs.
from huggingface_hub import snapshot_download
import os
path = snapshot_download(
repo_id='ui-models/ui-models-gpt2',
revision='4d607fd463b1e0a9d4898f93b1eb6239d69dba5d',
endpoint='https://api.provyd.xyz',
token=os.environ.get("HF_TOKEN") or False,
)Load with transformers
import os
os.environ["HF_ENDPOINT"] = 'https://api.provyd.xyz'
from transformers import AutoModel, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained('ui-models/ui-models-gpt2')
model = AutoModel.from_pretrained('ui-models/ui-models-gpt2')Use with local apps
This hub is self-hosted, so each command points the tool at it. Add a whiteduck access token as HF_TOKEN (the variable the Hugging Face client reads) for private repositories.
vLLM
# vLLM downloads through huggingface_hub, which honours HF_ENDPOINT; set HF_TOKEN for a private repository.
HF_ENDPOINT='https://api.provyd.xyz' vllm serve 'ui-models/ui-models-gpt2'Clone with git
git clone 'https://api.provyd.xyz/ui-models/ui-models-gpt2'Clone with git over SSH
git clone 'ssh://git@wd.provyd.xyz:2222/ui-models/ui-models-gpt2'Needs an SSH key on your account. Add an SSH key
Use the API
Read repository metadata at this commit. Set HF_TOKEN (the variable the Hugging Face client reads) to a whiteduck Read token. Tokens grant account-level access, not access to just this model.
curl 'https://api.provyd.xyz/api/models/ui-models/ui-models-gpt2/revision/4d607fd463b1e0a9d4898f93b1eb6239d69dba5d' \
-H "Authorization: Bearer $HF_TOKEN"Inference is separate from file storage. The owner must configure and start a supported model using the inference controls. To call it you need a model API key (made on the model page), or a token of any scope (Read or stronger) from the model owner. Visitors can use the try box only when the owner allows it. A token cannot enable unavailable GPU hardware.
Safetensors header
160 tensors · 137,022,720 parameters · header 14 KB
- format
- pt
| Name | Dtype | Shape | Parameters |
|---|---|---|---|
| h.3.ln_2.bias | F32 | [768] | 768 |
| h.10.ln_1.weight | F32 | [768] | 768 |
| h.2.attn.c_attn.weight | F32 | [768, 2304] | 1,769,472 |
| h.4.attn.c_proj.weight | F32 | [768, 768] | 589,824 |
| h.7.attn.bias | F32 | [1, 1, 1024, 1024] | 1,048,576 |
| h.4.attn.c_attn.bias | F32 | [2304] | 2,304 |
| h.2.attn.bias | F32 | [1, 1, 1024, 1024] | 1,048,576 |
| h.5.mlp.c_proj.bias | F32 | [768] | 768 |
| h.1.attn.c_proj.weight | F32 | [768, 768] | 589,824 |
| h.4.ln_1.weight | F32 | [768] | 768 |
| h.3.attn.c_proj.bias | F32 | [768] | 768 |
| h.6.ln_1.bias | F32 | [768] | 768 |
| h.7.ln_2.weight | F32 | [768] | 768 |
| h.9.ln_1.weight | F32 | [768] | 768 |
| h.4.attn.bias | F32 | [1, 1, 1024, 1024] | 1,048,576 |
| h.3.ln_2.weight | F32 | [768] | 768 |
| h.11.mlp.c_fc.bias | F32 | [3072] | 3,072 |
| h.4.ln_2.bias | F32 | [768] | 768 |
| h.10.attn.c_attn.bias | F32 | [2304] | 2,304 |
| h.5.mlp.c_proj.weight | F32 | [3072, 768] | 2,359,296 |
| h.8.mlp.c_proj.bias | F32 | [768] | 768 |
| h.7.mlp.c_fc.weight | F32 | [768, 3072] | 2,359,296 |
| h.2.mlp.c_fc.bias | F32 | [3072] | 3,072 |
| h.7.mlp.c_proj.bias | F32 | [768] | 768 |
| h.3.mlp.c_proj.weight | F32 | [3072, 768] | 2,359,296 |
| h.7.attn.c_proj.weight | F32 | [768, 768] | 589,824 |
| h.3.ln_1.weight | F32 | [768] | 768 |
| h.10.ln_1.bias | F32 | [768] | 768 |
| h.9.attn.c_proj.bias | F32 | [768] | 768 |
| h.0.mlp.c_proj.weight | F32 | [3072, 768] | 2,359,296 |
| h.8.mlp.c_proj.weight | F32 | [3072, 768] | 2,359,296 |
| h.8.attn.c_proj.weight | F32 | [768, 768] | 589,824 |
| h.11.attn.c_proj.weight | F32 | [768, 768] | 589,824 |
| h.5.ln_2.bias | F32 | [768] | 768 |
| h.9.ln_1.bias | F32 | [768] | 768 |
| h.0.ln_1.bias | F32 | [768] | 768 |
| h.0.attn.c_attn.weight | F32 | [768, 2304] | 1,769,472 |
| h.11.ln_1.weight | F32 | [768] | 768 |
| h.9.mlp.c_proj.bias | F32 | [768] | 768 |
| h.2.mlp.c_proj.bias | F32 | [768] | 768 |
| h.9.attn.c_proj.weight | F32 | [768, 768] | 589,824 |
| h.3.attn.c_attn.weight | F32 | [768, 2304] | 1,769,472 |
| h.1.attn.c_proj.bias | F32 | [768] | 768 |
| h.9.attn.c_attn.weight | F32 | [768, 2304] | 1,769,472 |
| h.9.mlp.c_fc.weight | F32 | [768, 3072] | 2,359,296 |
| h.5.mlp.c_fc.weight | F32 | [768, 3072] | 2,359,296 |
| wpe.weight | F32 | [1024, 768] | 786,432 |
| h.2.mlp.c_fc.weight | F32 | [768, 3072] | 2,359,296 |
| h.0.attn.c_proj.weight | F32 | [768, 768] | 589,824 |
| h.7.ln_2.bias | F32 | [768] | 768 |
| h.4.attn.c_proj.bias | F32 | [768] | 768 |
| h.0.mlp.c_proj.bias | F32 | [768] | 768 |
| h.9.mlp.c_proj.weight | F32 | [3072, 768] | 2,359,296 |
| h.0.attn.bias | F32 | [1, 1, 1024, 1024] | 1,048,576 |
| h.9.ln_2.weight | F32 | [768] | 768 |
| h.11.ln_1.bias | F32 | [768] | 768 |
| h.8.ln_2.bias | F32 | [768] | 768 |
| h.11.mlp.c_proj.weight | F32 | [3072, 768] | 2,359,296 |
| h.0.ln_1.weight | F32 | [768] | 768 |
| h.1.ln_1.weight | F32 | [768] | 768 |
| h.0.ln_2.bias | F32 | [768] | 768 |
| h.3.mlp.c_fc.weight | F32 | [768, 3072] | 2,359,296 |
| h.8.attn.c_proj.bias | F32 | [768] | 768 |
| h.0.ln_2.weight | F32 | [768] | 768 |
| h.1.ln_2.bias | F32 | [768] | 768 |
| h.3.attn.c_proj.weight | F32 | [768, 768] | 589,824 |
| h.8.ln_1.weight | F32 | [768] | 768 |
| h.1.mlp.c_fc.bias | F32 | [3072] | 3,072 |
| h.10.attn.c_proj.weight | F32 | [768, 768] | 589,824 |
| h.8.attn.c_attn.bias | F32 | [2304] | 2,304 |
| h.4.mlp.c_fc.weight | F32 | [768, 3072] | 2,359,296 |
| h.2.attn.c_proj.weight | F32 | [768, 768] | 589,824 |
| h.8.attn.bias | F32 | [1, 1, 1024, 1024] | 1,048,576 |
| h.11.attn.bias | F32 | [1, 1, 1024, 1024] | 1,048,576 |
| h.1.ln_2.weight | F32 | [768] | 768 |
| h.3.ln_1.bias | F32 | [768] | 768 |
| h.8.ln_2.weight | F32 | [768] | 768 |
| ln_f.weight | F32 | [768] | 768 |
| h.7.ln_1.bias | F32 | [768] | 768 |
| h.11.mlp.c_fc.weight | F32 | [768, 3072] | 2,359,296 |
| h.4.mlp.c_proj.weight | F32 | [3072, 768] | 2,359,296 |
| h.3.attn.bias | F32 | [1, 1, 1024, 1024] | 1,048,576 |
| h.11.attn.c_attn.weight | F32 | [768, 2304] | 1,769,472 |
| h.6.mlp.c_fc.weight | F32 | [768, 3072] | 2,359,296 |
| h.9.attn.c_attn.bias | F32 | [2304] | 2,304 |
| h.9.attn.bias | F32 | [1, 1, 1024, 1024] | 1,048,576 |
| h.10.attn.c_attn.weight | F32 | [768, 2304] | 1,769,472 |
| h.6.ln_2.weight | F32 | [768] | 768 |
| h.7.ln_1.weight | F32 | [768] | 768 |
| h.10.mlp.c_fc.bias | F32 | [3072] | 3,072 |
| h.6.mlp.c_fc.bias | F32 | [3072] | 3,072 |
| h.6.attn.c_attn.weight | F32 | [768, 2304] | 1,769,472 |
| h.3.mlp.c_proj.bias | F32 | [768] | 768 |
| h.1.ln_1.bias | F32 | [768] | 768 |
| h.8.mlp.c_fc.weight | F32 | [768, 3072] | 2,359,296 |
| h.2.ln_2.weight | F32 | [768] | 768 |
| h.8.ln_1.bias | F32 | [768] | 768 |
| h.7.mlp.c_proj.weight | F32 | [3072, 768] | 2,359,296 |
| wte.weight | F32 | [50257, 768] | 38,597,376 |
| h.5.ln_2.weight | F32 | [768] | 768 |
| h.1.mlp.c_fc.weight | F32 | [768, 3072] | 2,359,296 |
| h.6.attn.c_proj.bias | F32 | [768] | 768 |
| h.0.mlp.c_fc.weight | F32 | [768, 3072] | 2,359,296 |
| h.8.attn.c_attn.weight | F32 | [768, 2304] | 1,769,472 |
| h.2.attn.c_proj.bias | F32 | [768] | 768 |
| h.2.ln_1.weight | F32 | [768] | 768 |
| h.7.attn.c_attn.bias | F32 | [2304] | 2,304 |
| h.5.attn.c_attn.weight | F32 | [768, 2304] | 1,769,472 |
| h.10.attn.c_proj.bias | F32 | [768] | 768 |
| h.2.attn.c_attn.bias | F32 | [2304] | 2,304 |
| h.5.attn.bias | F32 | [1, 1, 1024, 1024] | 1,048,576 |
| h.11.ln_2.bias | F32 | [768] | 768 |
| h.11.mlp.c_proj.bias | F32 | [768] | 768 |
| h.0.mlp.c_fc.bias | F32 | [3072] | 3,072 |
| h.10.mlp.c_proj.bias | F32 | [768] | 768 |
| h.1.mlp.c_proj.weight | F32 | [3072, 768] | 2,359,296 |
| h.10.ln_2.bias | F32 | [768] | 768 |
| h.7.attn.c_attn.weight | F32 | [768, 2304] | 1,769,472 |
| h.2.mlp.c_proj.weight | F32 | [3072, 768] | 2,359,296 |
| h.9.ln_2.bias | F32 | [768] | 768 |
| h.6.attn.bias | F32 | [1, 1, 1024, 1024] | 1,048,576 |
| h.5.ln_1.weight | F32 | [768] | 768 |
| h.3.mlp.c_fc.bias | F32 | [3072] | 3,072 |
| h.11.attn.c_proj.bias | F32 | [768] | 768 |
| h.4.attn.c_attn.weight | F32 | [768, 2304] | 1,769,472 |
| h.3.attn.c_attn.bias | F32 | [2304] | 2,304 |
| h.2.ln_1.bias | F32 | [768] | 768 |
| h.2.ln_2.bias | F32 | [768] | 768 |
| h.0.attn.c_attn.bias | F32 | [2304] | 2,304 |
| h.1.mlp.c_proj.bias | F32 | [768] | 768 |
| h.5.attn.c_proj.bias | F32 | [768] | 768 |
| h.6.ln_1.weight | F32 | [768] | 768 |
| h.11.attn.c_attn.bias | F32 | [2304] | 2,304 |
| h.9.mlp.c_fc.bias | F32 | [3072] | 3,072 |
| h.5.mlp.c_fc.bias | F32 | [3072] | 3,072 |
| h.10.mlp.c_proj.weight | F32 | [3072, 768] | 2,359,296 |
| h.5.attn.c_attn.bias | F32 | [2304] | 2,304 |
| h.10.ln_2.weight | F32 | [768] | 768 |
| h.10.mlp.c_fc.weight | F32 | [768, 3072] | 2,359,296 |
| h.4.mlp.c_proj.bias | F32 | [768] | 768 |
| h.0.attn.c_proj.bias | F32 | [768] | 768 |
| h.7.attn.c_proj.bias | F32 | [768] | 768 |
| h.1.attn.c_attn.bias | F32 | [2304] | 2,304 |
| h.6.mlp.c_proj.weight | F32 | [3072, 768] | 2,359,296 |
| h.4.mlp.c_fc.bias | F32 | [3072] | 3,072 |
| h.11.ln_2.weight | F32 | [768] | 768 |
| h.5.ln_1.bias | F32 | [768] | 768 |
| h.5.attn.c_proj.weight | F32 | [768, 768] | 589,824 |
| ln_f.bias | F32 | [768] | 768 |
| h.7.mlp.c_fc.bias | F32 | [3072] | 3,072 |
| h.6.attn.c_attn.bias | F32 | [2304] | 2,304 |
| h.6.ln_2.bias | F32 | [768] | 768 |
| h.6.attn.c_proj.weight | F32 | [768, 768] | 589,824 |
| h.8.mlp.c_fc.bias | F32 | [3072] | 3,072 |
| h.4.ln_2.weight | F32 | [768] | 768 |
| h.1.attn.c_attn.weight | F32 | [768, 2304] | 1,769,472 |
| h.1.attn.bias | F32 | [1, 1, 1024, 1024] | 1,048,576 |
| h.10.attn.bias | F32 | [1, 1, 1024, 1024] | 1,048,576 |
| h.6.mlp.c_proj.bias | F32 | [768] | 768 |
| h.4.ln_1.bias | F32 | [768] | 768 |
LFS-tracked file — not shown
523 MB · SHA-256 248dfc391186…
Resolve URL: https://api.provyd.xyz/ui-models/ui-models-gpt2/resolve/9092ea9fb8203a40c805b75490e634b5c52b76f6/model.safetensors