Text Generation
MLX
Safetensors
English
small-language-model
from-scratch
conversational
apple-silicon
research
Instructions to use OpenSML/Solstice-1-175M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OpenSML/Solstice-1-175M 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-175M") 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-175M 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-175M"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "OpenSML/Solstice-1-175M" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenSML/Solstice-1-175M", "messages": [ {"role": "user", "content": "Hello"} ] }' - Atomic Chat
File size: 338 Bytes
7bcd331 4dd87da 7bcd331 4dd87da | 1 2 3 4 5 6 7 8 9 10 11 | cff-version: 1.2.0
message: "If you use Solstice-1-175M, cite this model and its recorded release revision."
title: "Solstice-1-175M: a 175M English chat research model"
authors:
- family-names: Zebrowski
given-names: William
type: software
version: "1.0.0"
license: Apache-2.0
url: "https://huggingface.co/OpenSML/Solstice-1-175M"
|