Instructions to use diegoquinteiro/SmolLM2-135M-Observable with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use diegoquinteiro/SmolLM2-135M-Observable with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'diegoquinteiro/SmolLM2-135M-Observable');
Upload semantic-lens-model.json with huggingface_hub
Browse files- semantic-lens-model.json +33 -0
semantic-lens-model.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_id": "HuggingFaceTB/SmolLM2-135M",
|
| 3 |
+
"model_file": "model_semantic_lens_q8.onnx",
|
| 4 |
+
"model_bytes": 28572883,
|
| 5 |
+
"quantization": {
|
| 6 |
+
"bits": 8,
|
| 7 |
+
"scheme": "dynamic",
|
| 8 |
+
"per_channel": true
|
| 9 |
+
},
|
| 10 |
+
"inputs": {
|
| 11 |
+
"hidden_states": [
|
| 12 |
+
"states",
|
| 13 |
+
576
|
| 14 |
+
]
|
| 15 |
+
},
|
| 16 |
+
"outputs": {
|
| 17 |
+
"similarities": [
|
| 18 |
+
"states",
|
| 19 |
+
49152
|
| 20 |
+
]
|
| 21 |
+
},
|
| 22 |
+
"readout": "final RMSNorm and L2 normalization, compared with L2-normalized unembedding rows",
|
| 23 |
+
"validation": {
|
| 24 |
+
"states": 2,
|
| 25 |
+
"top_10_overlap_min": 9,
|
| 26 |
+
"top_10_overlap_mean": 9.5,
|
| 27 |
+
"max_similarity_error": 0.002543253591284156,
|
| 28 |
+
"similarities_shape": [
|
| 29 |
+
2,
|
| 30 |
+
49152
|
| 31 |
+
]
|
| 32 |
+
}
|
| 33 |
+
}
|