Aime2k2 commited on
Commit
788c19e
·
verified ·
1 Parent(s): c05a360

Update ML Intern artifact metadata

Browse files
Files changed (1) hide show
  1. README.md +21 -0
README.md CHANGED
@@ -4,6 +4,7 @@ license: apache-2.0
4
  base_model: distilbert/distilbert-base-uncased
5
  tags:
6
  - generated_from_trainer
 
7
  metrics:
8
  - accuracy
9
  - f1
@@ -66,3 +67,23 @@ The following hyperparameters were used during training:
66
  - Pytorch 2.11.0+cu130
67
  - Datasets 4.8.5
68
  - Tokenizers 0.22.2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  base_model: distilbert/distilbert-base-uncased
5
  tags:
6
  - generated_from_trainer
7
+ - ml-intern
8
  metrics:
9
  - accuracy
10
  - f1
 
67
  - Pytorch 2.11.0+cu130
68
  - Datasets 4.8.5
69
  - Tokenizers 0.22.2
70
+
71
+ <!-- ml-intern-provenance -->
72
+ ## Generated by ML Intern
73
+
74
+ This model repository was generated by [ML Intern](https://github.com/huggingface/ml-intern), an agent for machine learning research and development on the Hugging Face Hub.
75
+
76
+ - Try ML Intern: https://smolagents-ml-intern.hf.space
77
+ - Source code: https://github.com/huggingface/ml-intern
78
+
79
+ ## Usage
80
+
81
+ ```python
82
+ from transformers import AutoModelForCausalLM, AutoTokenizer
83
+
84
+ model_id = 'Aime2k2/spam-email-distilbert'
85
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
86
+ model = AutoModelForCausalLM.from_pretrained(model_id)
87
+ ```
88
+
89
+ For non-causal architectures, replace `AutoModelForCausalLM` with the appropriate `AutoModel` class.