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
File size: 1,747 Bytes
8f2ec8e | 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 | {
"native_bundle_sha256": "14f85f0ff677d35a6fb34f118f2dd21a3fdd504fff27c163860ab919b21e0e98",
"files": {
"pretraining/sml_v1/__init__.py": {
"bytes": 67,
"sha256": "7e9e02294e03e6b8a12fd202ab288f2f9b0073bb11b8cb2a5fa82211b0d1dfa4"
},
"pretraining/sml_v1/common.py": {
"bytes": 2553,
"sha256": "ec4dda551cbe45cbd30d64c7c82379a8849ce02a3ad1a597a293844b5dc86351"
},
"pretraining/sml_v1/tokenization.py": {
"bytes": 2797,
"sha256": "254e1f5d60cc4498a9f1209955752db28b91839f48d3121d674f3f5ac42e52e5"
},
"pretraining/sml_v1/model.py": {
"bytes": 10552,
"sha256": "1eee6f8afe78767ff6b9c604ccf2328c98b24bc94dbad6291a0ad699dd7345fe"
},
"pretraining/sml_v1/fast_swiglu.py": {
"bytes": 2328,
"sha256": "59d1adb31400e3c288914b4c0cc8a21681a73ca3dfa7c722ea4e13d21dc38528"
},
"pretraining/sml_v1/fast_loss.py": {
"bytes": 3705,
"sha256": "f99edeedb6cb328ef728d05643f65ea20371437f7e5806009ae3ad0885bafbf1"
},
"tokenizer/corpus.json": {
"bytes": 1549,
"sha256": "e4c47b7b6aba08f948de7c2c7cb94c58dbd09dde2ded6ac185c60856ee686d27"
},
"tokenizer/manifest.json": {
"bytes": 988,
"sha256": "1194292c6d906ac19e6f01c6ad2b42825143fad426a22aa8856d903776701ecb"
},
"tokenizer/report.json": {
"bytes": 889,
"sha256": "e871f690eabebf82da173f0e406f38b79a10cd7d2647bb3592c3fc35ae9a2f16"
},
"tokenizer/tokenizer.json": {
"bytes": 2288703,
"sha256": "e095f0413a11fa91fbb58f37d00e4c6bcda59beb89b28f6f680db1436a7e8891"
},
"tokenizer/tokenizer_config.json": {
"bytes": 200,
"sha256": "619f500553367eb76f5be00a98625130ec857b9c367561334984096c029ba2a9"
}
}
}
|