Instructions to use gavincyi/test_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gavincyi/test_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="gavincyi/test_model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("gavincyi/test_model") model = AutoModelForSequenceClassification.from_pretrained("gavincyi/test_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from gavincyi/test_model: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/gavincyi/test_model/resolve/refs%2Fpr%2F1/config.json
- Command line
-
hf download hf://gavincyi/test_model@refs/pr/1/config.json
-
curl -L -o config.json https://huggingface.co/gavincyi/test_model/resolve/refs%2Fpr%2F1/config.json
1.12 kB
| { | |
| "_name_or_path": "gavincyi/test_model", | |
| "activation": "gelu", | |
| "architectures": [ | |
| "DistilBertForSequenceClassification" | |
| ], | |
| "attention_dropout": 0.1, | |
| "attention_probs_dropout_prob": 0.1, | |
| "classifier_dropout": null, | |
| "dim": 768, | |
| "dropout": 0.1, | |
| "gradient_checkpointing": false, | |
| "hidden_act": "gelu", | |
| "hidden_dim": 3072, | |
| "hidden_dropout_prob": 0.1, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1", | |
| "2": "LABEL_2", | |
| "3": "LABEL_3", | |
| "4": "LABEL_4" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1, | |
| "LABEL_2": 2, | |
| "LABEL_3": 3, | |
| "LABEL_4": 4 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "distilbert", | |
| "n_heads": 12, | |
| "n_layers": 12, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "problem_type": "single_label_classification", | |
| "qa_dropout": 0.1, | |
| "seq_classif_dropout": 0.2, | |
| "sinusoidal_pos_embds": false, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.28.1", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "vocab_size": 28996 | |
| } | |