Instructions to use Xuanda/test-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Xuanda/test-model with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Xuanda/test-model") model = AutoModel.from_pretrained("Xuanda/test-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from Xuanda/test-model: direct link, hf CLI and curl.
- Browser
- Download file 735 Bytes
-
https://huggingface.co/Xuanda/test-model/resolve/main/config.json
- Command line
-
hf download hf://Xuanda/test-model/config.json
-
curl -L -o config.json https://huggingface.co/Xuanda/test-model/resolve/main/config.json
735 Bytes
| { | |
| "_name_or_path": "models", | |
| "_remove_final_layer_norm": false, | |
| "activation_dropout": 0.0, | |
| "activation_function": "relu", | |
| "architectures": [ | |
| "LanguageModel" | |
| ], | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 2, | |
| "do_layer_norm_before": true, | |
| "dropout": 0.1, | |
| "enable_bias": true, | |
| "eos_token_id": 2, | |
| "ffn_dim": 3072, | |
| "hidden_size": 768, | |
| "init_std": 0.02, | |
| "layer_norm_elementwise_affine": true, | |
| "layerdrop": 0.0, | |
| "max_position_embeddings": 2048, | |
| "model_type": "opt", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 1, | |
| "prefix": "</s>", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.26.1", | |
| "use_cache": true, | |
| "vocab_size": 50272, | |
| "word_embed_proj_dim": 768 | |
| } | |