Instructions to use Magic-AI/Magical-1-Sun with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Magic-AI/Magical-1-Sun with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Magic-AI/Magical-1-Sun")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Magic-AI/Magical-1-Sun", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Create config.json
Browse files- config.json +11 -0
config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_name": "Magical-1 Sun",
|
| 3 |
+
"model_type": "bert",
|
| 4 |
+
"base_model": "bert-base-uncased",
|
| 5 |
+
"num_labels": 2,
|
| 6 |
+
"max_length": 128,
|
| 7 |
+
"batch_size": 2,
|
| 8 |
+
"learning_rate": 2e-5,
|
| 9 |
+
"epochs": 3,
|
| 10 |
+
"device": "cuda"
|
| 11 |
+
}
|