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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "model_name": "Magical-1 Sun", | |
| "model_type": "bert", | |
| "base_model": "bert-base-uncased", | |
| "num_labels": 2, | |
| "max_length": 128, | |
| "batch_size": 2, | |
| "learning_rate": 2e-5, | |
| "epochs": 3, | |
| "device": "cuda" | |
| } |