Text Generation
MLX
Safetensors
English
small-language-model
from-scratch
conversational
apple-silicon
research
Instructions to use OpenSML/Solstice-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OpenSML/Solstice-1 with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("OpenSML/Solstice-1") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use OpenSML/Solstice-1 with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "OpenSML/Solstice-1"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "OpenSML/Solstice-1" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenSML/Solstice-1", "messages": [ {"role": "user", "content": "Hello"} ] }' - Atomic Chat
File size: 2,697 Bytes
7bcd331 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | {
"checked": {
"dev": 300,
"test": 1000,
"train": 20480
},
"duplicate_prompts": 0,
"families": {
"dev": {
"abstention:contact": 12,
"abstention:label": 12,
"abstention:location": 12,
"abstention:quantity": 12,
"abstention:time": 12,
"constraints:0": 8,
"constraints:1": 8,
"constraints:2": 8,
"constraints:3": 8,
"constraints:4": 7,
"constraints:5": 7,
"constraints:6": 7,
"constraints:7": 7,
"dialogue:contact": 12,
"dialogue:label": 12,
"dialogue:location": 12,
"dialogue:quantity": 12,
"dialogue:time": 12,
"grounded:contact": 12,
"grounded:label": 12,
"grounded:location": 12,
"grounded:quantity": 12,
"grounded:time": 12,
"reasoning:0": 10,
"reasoning:1": 10,
"reasoning:2": 10,
"reasoning:3": 10,
"reasoning:4": 10,
"reasoning:5": 10
},
"test": {
"abstention:contact": 40,
"abstention:label": 40,
"abstention:location": 40,
"abstention:quantity": 40,
"abstention:time": 40,
"constraints:0": 25,
"constraints:1": 25,
"constraints:2": 25,
"constraints:3": 25,
"constraints:4": 25,
"constraints:5": 25,
"constraints:6": 25,
"constraints:7": 25,
"dialogue:contact": 40,
"dialogue:label": 40,
"dialogue:location": 40,
"dialogue:quantity": 40,
"dialogue:time": 40,
"grounded:contact": 40,
"grounded:label": 40,
"grounded:location": 40,
"grounded:quantity": 40,
"grounded:time": 40,
"reasoning:0": 34,
"reasoning:1": 34,
"reasoning:2": 33,
"reasoning:3": 33,
"reasoning:4": 33,
"reasoning:5": 33
},
"train": {
"abstention:contact": 817,
"abstention:label": 834,
"abstention:location": 806,
"abstention:quantity": 819,
"abstention:time": 820,
"constraints:0": 519,
"constraints:1": 508,
"constraints:2": 525,
"constraints:3": 495,
"constraints:4": 522,
"constraints:5": 507,
"constraints:6": 519,
"constraints:7": 501,
"dialogue:contact": 817,
"dialogue:label": 834,
"dialogue:location": 806,
"dialogue:quantity": 819,
"dialogue:time": 820,
"grounded:contact": 817,
"grounded:label": 834,
"grounded:location": 806,
"grounded:quantity": 819,
"grounded:time": 820,
"reasoning:0": 727,
"reasoning:1": 538,
"reasoning:2": 728,
"reasoning:3": 738,
"reasoning:4": 630,
"reasoning:5": 735
}
},
"text_only": true,
"wrong_targets": 0
}
|