Instructions to use Azimml/SmolLM2-135M-trellis-3bit-webgpu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Azimml/SmolLM2-135M-trellis-3bit-webgpu with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Azimml/SmolLM2-135M-trellis-3bit-webgpu", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -16,7 +16,7 @@ library_name: transformers
|
|
| 16 |
A **3-bit trellis-coded quantization (TCQ)** of [SmolLM2-135M](https://huggingface.co/HuggingFaceTB/SmolLM2-135M),
|
| 17 |
packed to run its **full forward pass in a web browser on WebGPU** — no CUDA, no server.
|
| 18 |
|
| 19 |
-
This is part of **[Trellis
|
| 20 |
the first trellis-coded quantization decoder (the QTIP / EXL3 quality tier) to run
|
| 21 |
outside CUDA. See the repo for the quantizer, the WGSL kernels, and the full
|
| 22 |
verification harness.
|
|
@@ -43,10 +43,10 @@ this project reproduces the QTIP paper's published rate–distortion (MSE 0.0739
|
|
| 43 |
|
| 44 |
This is **not** a standard `transformers` checkpoint. It is a packed 3-bit format
|
| 45 |
(`manifest.json` + sharded `.bin` weights + IP metadata) designed for the WebGPU runtime
|
| 46 |
-
in the [Trellis
|
| 47 |
|
| 48 |
```bash
|
| 49 |
-
git clone https://github.com/Azimml/trellis-
|
| 50 |
# place these files under web/model_packed/ , then:
|
| 51 |
cd web && python3 -m http.server 8000 # open index.html in a WebGPU browser
|
| 52 |
# or verify headlessly on your GPU:
|
|
|
|
| 16 |
A **3-bit trellis-coded quantization (TCQ)** of [SmolLM2-135M](https://huggingface.co/HuggingFaceTB/SmolLM2-135M),
|
| 17 |
packed to run its **full forward pass in a web browser on WebGPU** — no CUDA, no server.
|
| 18 |
|
| 19 |
+
This is part of **[Trellis WebGPU](https://github.com/Azimml/trellis-webgpu)** —
|
| 20 |
the first trellis-coded quantization decoder (the QTIP / EXL3 quality tier) to run
|
| 21 |
outside CUDA. See the repo for the quantizer, the WGSL kernels, and the full
|
| 22 |
verification harness.
|
|
|
|
| 43 |
|
| 44 |
This is **not** a standard `transformers` checkpoint. It is a packed 3-bit format
|
| 45 |
(`manifest.json` + sharded `.bin` weights + IP metadata) designed for the WebGPU runtime
|
| 46 |
+
in the [Trellis WebGPU](https://github.com/Azimml/trellis-webgpu) repo. To run it:
|
| 47 |
|
| 48 |
```bash
|
| 49 |
+
git clone https://github.com/Azimml/trellis-webgpu
|
| 50 |
# place these files under web/model_packed/ , then:
|
| 51 |
cd web && python3 -m http.server 8000 # open index.html in a WebGPU browser
|
| 52 |
# or verify headlessly on your GPU:
|