Instructions to use Magic-AI/Magical-1-Star with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Magic-AI/Magical-1-Star with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Magic-AI/Magical-1-Star")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Magic-AI/Magical-1-Star", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "model_name": "Magical-1 Star", | |
| "version": "1.0.0", | |
| "sentence_transformer": { | |
| "model_name": "all-MiniLM-L6-v2", | |
| "max_seq_length": 128 | |
| }, | |
| "classifier": { | |
| "input_size": 384, | |
| "num_classes": 2 | |
| }, | |
| "training": { | |
| "batch_size": 32, | |
| "num_epochs": 5, | |
| "learning_rate": 2e-5, | |
| "optimizer": "AdamW", | |
| "loss_function": "CrossEntropyLoss" | |
| }, | |
| "data": { | |
| "train_test_split": 0.2, | |
| "random_seed": 42 | |
| }, | |
| "paths": { | |
| "model_save_path": "magical_1_star.safetensors", | |
| "log_dir": "logs" | |
| } | |
| } |