Instructions to use apps1/hash_nano_complete_student_model_updated_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use apps1/hash_nano_complete_student_model_updated_v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="apps1/hash_nano_complete_student_model_updated_v2", trust_remote_code=True)# Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("apps1/hash_nano_complete_student_model_updated_v2", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "add_cross_attention": false, | |
| "architectures": [ | |
| "BertHashForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "auto_map": { | |
| "AutoConfig": "configuration_bert_hash.BertHashConfig", | |
| "AutoModel": "modeling_bert_hash.BertHashModel", | |
| "AutoModelForMaskedLM": "modeling_bert_hash.BertHashForMaskedLM", | |
| "AutoModelForSequenceClassification": "modeling_bert_hash.BertHashForSequenceClassification" | |
| }, | |
| "bos_token_id": null, | |
| "classifier_dropout": null, | |
| "dtype": "float32", | |
| "eos_token_id": null, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 128, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1", | |
| "2": "LABEL_2" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 512, | |
| "is_decoder": false, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1, | |
| "LABEL_2": 2 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert_hash", | |
| "num_attention_heads": 2, | |
| "num_hidden_layers": 2, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "problem_type": "single_label_classification", | |
| "projections": 16, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.8.1", | |
| "type_vocab_size": 2, | |
| "use_cache": false, | |
| "vocab_size": 30522 | |
| } | |