Text Generation
MLX
Safetensors
English
base-model
pretrained
small-language-model
apple-silicon
from-scratch
research
Instructions to use OpenSML/OpenSML-Base-175M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OpenSML/OpenSML-Base-175M with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("OpenSML/OpenSML-Base-175M") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use OpenSML/OpenSML-Base-175M with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "OpenSML/OpenSML-Base-175M" --prompt "Once upon a time"
- Atomic Chat
Download native_bundle.zip from OpenSML/OpenSML-Base-175M: direct link, hf CLI and curl.
- Browser
- Download file 415 kB
-
https://huggingface.co/OpenSML/OpenSML-Base-175M/resolve/main/native_bundle.zip
- Command line
-
hf download hf://OpenSML/OpenSML-Base-175M/native_bundle.zip
-
curl -L -o native_bundle.zip https://huggingface.co/OpenSML/OpenSML-Base-175M/resolve/main/native_bundle.zip
415 kB
- Xet hash:
- 536ff6d7fcf6c8303df31375af5b67ba0369cc6002d8fe5f67bd21fb79070a05
- Size of remote file:
- 415 kB
- SHA256:
- 14f85f0ff677d35a6fb34f118f2dd21a3fdd504fff27c163860ab919b21e0e98
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.