Text Generation
MLX
Safetensors
English
information-extraction
structured-output
json
small-language-model
apple-silicon
from-scratch
post-training
research
Instructions to use OpenSML/OpenSML-JSONLite-175M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OpenSML/OpenSML-JSONLite-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-JSONLite-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-JSONLite-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-JSONLite-175M" --prompt "Once upon a time"
- Atomic Chat
Download native_bundle.zip from OpenSML/OpenSML-JSONLite-175M: direct link, hf CLI and curl.
- Browser
- Download file 12.5 MB
-
https://huggingface.co/OpenSML/OpenSML-JSONLite-175M/resolve/56c4fe441a5cd7f3ffaee7d1dc31de15cf299f0d/native_bundle.zip
- Command line
-
hf download hf://OpenSML/OpenSML-JSONLite-175M@56c4fe441a5cd7f3ffaee7d1dc31de15cf299f0d/native_bundle.zip
-
curl -L -o native_bundle.zip https://huggingface.co/OpenSML/OpenSML-JSONLite-175M/resolve/56c4fe441a5cd7f3ffaee7d1dc31de15cf299f0d/native_bundle.zip
12.5 MB
- Xet hash:
- f9958a63655a41faba126837f8d1b094ea64996594a66ce99191809c5ae47505
- Size of remote file:
- 12.5 MB
- SHA256:
- dd156bba973c85afa13ee348b24ce2f220243718c1d3c0f3298eeaf1f3cda859
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.