@sheethappiness/pi-ghost-autocomplete-win32-x64-msvc 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/PROVENANCE.md +13 -0
- package/THIRD_PARTY_NOTICES.md +14 -0
- package/ghost-native.node +0 -0
- package/licenses/OMP-MIT.txt +23 -0
- package/licenses/QuantFactory-MODEL-CARD.md +145 -0
- package/licenses/SmolLM2-APACHE-2.0.txt +202 -0
- package/licenses/SmolLM2-MODEL-CARD.md +138 -0
- package/licenses/model-provenance.json +29 -0
- package/licenses/rust/aho-corasick-1.1.5/COPYING +3 -0
- package/licenses/rust/aho-corasick-1.1.5/LICENSE-MIT +21 -0
- package/licenses/rust/anyhow-1.0.100/LICENSE-APACHE +176 -0
- package/licenses/rust/anyhow-1.0.100/LICENSE-MIT +23 -0
- package/licenses/rust/bitflags-2.13.2/LICENSE-APACHE +201 -0
- package/licenses/rust/bitflags-2.13.2/LICENSE-MIT +25 -0
- package/licenses/rust/bumpalo-3.20.3/LICENSE-APACHE +201 -0
- package/licenses/rust/bumpalo-3.20.3/LICENSE-MIT +25 -0
- package/licenses/rust/cfg-if-1.0.5/LICENSE-APACHE +201 -0
- package/licenses/rust/cfg-if-1.0.5/LICENSE-MIT +25 -0
- package/licenses/rust/convert_case-0.12.0/LICENSE +21 -0
- package/licenses/rust/crossbeam-deque-0.8.8/LICENSE-APACHE +201 -0
- package/licenses/rust/crossbeam-deque-0.8.8/LICENSE-MIT +27 -0
- package/licenses/rust/crossbeam-epoch-0.9.21/LICENSE-APACHE +201 -0
- package/licenses/rust/crossbeam-epoch-0.9.21/LICENSE-MIT +27 -0
- package/licenses/rust/crossbeam-utils-0.8.23/LICENSE-APACHE +201 -0
- package/licenses/rust/crossbeam-utils-0.8.23/LICENSE-MIT +27 -0
- package/licenses/rust/ctor-1.0.13/LICENSE-APACHE +201 -0
- package/licenses/rust/ctor-1.0.13/LICENSE-MIT +5 -0
- package/licenses/rust/either-1.19.0/LICENSE-APACHE +201 -0
- package/licenses/rust/either-1.19.0/LICENSE-MIT +25 -0
- package/licenses/rust/fastrand-2.5.0/LICENSE-APACHE +201 -0
- package/licenses/rust/fastrand-2.5.0/LICENSE-MIT +23 -0
- package/licenses/rust/flume-0.12.0/LICENSE-APACHE +201 -0
- package/licenses/rust/flume-0.12.0/LICENSE-MIT +23 -0
- package/licenses/rust/futures-0.3.34/LICENSE-APACHE +202 -0
- package/licenses/rust/futures-0.3.34/LICENSE-MIT +26 -0
- package/licenses/rust/futures-channel-0.3.34/LICENSE-APACHE +202 -0
- package/licenses/rust/futures-channel-0.3.34/LICENSE-MIT +26 -0
- package/licenses/rust/futures-core-0.3.34/LICENSE-APACHE +202 -0
- package/licenses/rust/futures-core-0.3.34/LICENSE-MIT +26 -0
- package/licenses/rust/futures-executor-0.3.34/LICENSE-APACHE +202 -0
- package/licenses/rust/futures-executor-0.3.34/LICENSE-MIT +26 -0
- package/licenses/rust/futures-io-0.3.34/LICENSE-APACHE +202 -0
- package/licenses/rust/futures-io-0.3.34/LICENSE-MIT +26 -0
- package/licenses/rust/futures-macro-0.3.34/LICENSE-APACHE +202 -0
- package/licenses/rust/futures-macro-0.3.34/LICENSE-MIT +26 -0
- package/licenses/rust/futures-sink-0.3.34/LICENSE-APACHE +202 -0
- package/licenses/rust/futures-sink-0.3.34/LICENSE-MIT +26 -0
- package/licenses/rust/futures-task-0.3.34/LICENSE-APACHE +202 -0
- package/licenses/rust/futures-task-0.3.34/LICENSE-MIT +26 -0
- package/licenses/rust/futures-util-0.3.34/LICENSE-APACHE +202 -0
- package/licenses/rust/futures-util-0.3.34/LICENSE-MIT +26 -0
- package/licenses/rust/getrandom-0.4.3/LICENSE-APACHE +201 -0
- package/licenses/rust/getrandom-0.4.3/LICENSE-MIT +26 -0
- package/licenses/rust/itoa-1.0.18/LICENSE-APACHE +176 -0
- package/licenses/rust/itoa-1.0.18/LICENSE-MIT +23 -0
- package/licenses/rust/js-sys-0.3.106/LICENSE-APACHE +201 -0
- package/licenses/rust/js-sys-0.3.106/LICENSE-MIT +25 -0
- package/licenses/rust/libc-0.2.191/LICENSE-APACHE +176 -0
- package/licenses/rust/libc-0.2.191/LICENSE-MIT +25 -0
- package/licenses/rust/libloading-0.9.0/LICENSE +12 -0
- package/licenses/rust/lock_api-0.4.14/LICENSE-APACHE +201 -0
- package/licenses/rust/lock_api-0.4.14/LICENSE-MIT +25 -0
- package/licenses/rust/memchr-2.8.3/COPYING +3 -0
- package/licenses/rust/memchr-2.8.3/LICENSE-MIT +21 -0
- package/licenses/rust/napi-3.14.2/LICENSE +43 -0
- package/licenses/rust/napi-build-2.6.0/LICENSE +43 -0
- package/licenses/rust/napi-derive-3.6.12/LICENSE +43 -0
- package/licenses/rust/napi-derive-backend-6.1.5/LICENSE +43 -0
- package/licenses/rust/napi-sys-3.4.0/LICENSE +43 -0
- package/licenses/rust/nohash-hasher-0.2.0/LICENSE-APACHE +202 -0
- package/licenses/rust/nohash-hasher-0.2.0/LICENSE-MIT +18 -0
- package/licenses/rust/once_cell-1.21.4/LICENSE-APACHE +201 -0
- package/licenses/rust/once_cell-1.21.4/LICENSE-MIT +23 -0
- package/licenses/rust/pin-project-lite-0.2.17/LICENSE-APACHE +177 -0
- package/licenses/rust/pin-project-lite-0.2.17/LICENSE-MIT +23 -0
- package/licenses/rust/proc-macro2-1.0.107/LICENSE-APACHE +176 -0
- package/licenses/rust/proc-macro2-1.0.107/LICENSE-MIT +23 -0
- package/licenses/rust/quote-1.0.47/LICENSE-APACHE +176 -0
- package/licenses/rust/quote-1.0.47/LICENSE-MIT +23 -0
- package/licenses/rust/r-efi-6.0.0/AUTHORS +75 -0
- package/licenses/rust/rayon-1.11.0/LICENSE-APACHE +201 -0
- package/licenses/rust/rayon-1.11.0/LICENSE-MIT +25 -0
- package/licenses/rust/rayon-core-1.13.0/LICENSE-APACHE +201 -0
- package/licenses/rust/rayon-core-1.13.0/LICENSE-MIT +25 -0
- package/licenses/rust/regex-1.12.2/LICENSE-APACHE +201 -0
- package/licenses/rust/regex-1.12.2/LICENSE-MIT +25 -0
- package/licenses/rust/regex-automata-0.4.18/LICENSE-APACHE +201 -0
- package/licenses/rust/regex-automata-0.4.18/LICENSE-MIT +25 -0
- package/licenses/rust/regex-syntax-0.8.11/LICENSE-APACHE +201 -0
- package/licenses/rust/regex-syntax-0.8.11/LICENSE-MIT +25 -0
- package/licenses/rust/rustc-hash-2.1.3/LICENSE-APACHE +176 -0
- package/licenses/rust/rustc-hash-2.1.3/LICENSE-MIT +23 -0
- package/licenses/rust/rustversion-1.0.23/LICENSE-APACHE +176 -0
- package/licenses/rust/rustversion-1.0.23/LICENSE-MIT +23 -0
- package/licenses/rust/ryu-1.0.23/LICENSE-APACHE +176 -0
- package/licenses/rust/ryu-1.0.23/LICENSE-BOOST +23 -0
- package/licenses/rust/scopeguard-1.2.0/LICENSE-APACHE +201 -0
- package/licenses/rust/scopeguard-1.2.0/LICENSE-MIT +25 -0
- package/licenses/rust/semver-1.0.28/LICENSE-APACHE +176 -0
- package/licenses/rust/semver-1.0.28/LICENSE-MIT +23 -0
- package/licenses/rust/serde-1.0.228/LICENSE-APACHE +176 -0
- package/licenses/rust/serde-1.0.228/LICENSE-MIT +23 -0
- package/licenses/rust/serde_core-1.0.228/LICENSE-APACHE +176 -0
- package/licenses/rust/serde_core-1.0.228/LICENSE-MIT +23 -0
- package/licenses/rust/serde_derive-1.0.228/LICENSE-APACHE +176 -0
- package/licenses/rust/serde_derive-1.0.228/LICENSE-MIT +23 -0
- package/licenses/rust/serde_json-1.0.145/LICENSE-APACHE +176 -0
- package/licenses/rust/serde_json-1.0.145/LICENSE-MIT +23 -0
- package/licenses/rust/slab-0.4.12/LICENSE +25 -0
- package/licenses/rust/spin-0.9.9/LICENSE +21 -0
- package/licenses/rust/syn-2.0.119/LICENSE-APACHE +176 -0
- package/licenses/rust/syn-2.0.119/LICENSE-MIT +23 -0
- package/licenses/rust/syn-3.0.9/LICENSE-APACHE +176 -0
- package/licenses/rust/syn-3.0.9/LICENSE-MIT +23 -0
- package/licenses/rust/tokio-1.53.1/LICENSE +21 -0
- package/licenses/rust/tokio-macros-2.7.2/LICENSE +22 -0
- package/licenses/rust/unicode-ident-1.0.27/LICENSE-APACHE +176 -0
- package/licenses/rust/unicode-ident-1.0.27/LICENSE-MIT +23 -0
- package/licenses/rust/unicode-ident-1.0.27/LICENSE-UNICODE +39 -0
- package/licenses/rust/unicode-segmentation-1.13.3/LICENSE-APACHE +201 -0
- package/licenses/rust/unicode-segmentation-1.13.3/LICENSE-MIT +25 -0
- package/licenses/rust/wasm-bindgen-0.2.129/LICENSE-APACHE +201 -0
- package/licenses/rust/wasm-bindgen-0.2.129/LICENSE-MIT +25 -0
- package/licenses/rust/wasm-bindgen-macro-0.2.129/LICENSE-APACHE +201 -0
- package/licenses/rust/wasm-bindgen-macro-0.2.129/LICENSE-MIT +25 -0
- package/licenses/rust/wasm-bindgen-macro-support-0.2.129/LICENSE-APACHE +201 -0
- package/licenses/rust/wasm-bindgen-macro-support-0.2.129/LICENSE-MIT +25 -0
- package/licenses/rust/wasm-bindgen-shared-0.2.129/LICENSE-APACHE +201 -0
- package/licenses/rust/wasm-bindgen-shared-0.2.129/LICENSE-MIT +25 -0
- package/licenses/rust/windows-link-0.2.1/license-apache-2.0 +201 -0
- package/licenses/rust/windows-link-0.2.1/license-mit +21 -0
- package/licenses/rust-dependencies.json +681 -0
- package/package.json +29 -4
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 pi-ghost-autocomplete contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/PROVENANCE.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# OMP source provenance
|
|
2
|
+
|
|
3
|
+
Source: https://github.com/can1357/oh-my-pi/tree/45c35e40c46166dc726ccc52f5d27f40f2449f99
|
|
4
|
+
|
|
5
|
+
MIT license retained in licenses/OMP-MIT.txt.
|
|
6
|
+
|
|
7
|
+
- prompt/markdown-prose.ts: maskNonProse and its helpers, keywordInProse omitted; FENCE_RE inlined from render/render-utils.ts.
|
|
8
|
+
- prompt/prose-gate.ts: TypingWord/spelling-only field removed; import extensions added.
|
|
9
|
+
- prompt/word-completion.ts: textBefore copied, query gates adapted to logical line end and minimum two letters. Controller independently adapted to snapshot/session lifetime.
|
|
10
|
+
- components/editor.ts: acceptance/rendering behavior used as reference only, class not copied.
|
|
11
|
+
|
|
12
|
+
- crates/pi-predict/src/lib.rs: Query/Suggestion/Config/Predictor retained; Method/apple/ngram removed, open is Smol-only.
|
|
13
|
+
- src/prose.rs and smollm/{config,cpu,gguf,mod,search,session,tokenizer}.rs + preamble.txt copied. Metal loading/Device KV variant removed; CPU on every platform. Original unit tests retained; upstream benchmark documentation removed.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
This plugin contains modified MIT-licensed OMP code from can1357/oh-my-pi, commit
|
|
4
|
+
45c35e40c46166dc726ccc52f5d27f40f2449f99. Original copyright and full terms are in
|
|
5
|
+
licenses/OMP-MIT.txt. File-specific changes are recorded in vendor/omp/PROVENANCE.md.
|
|
6
|
+
|
|
7
|
+
SmolLM2-135M by HuggingFaceTB and its QuantFactory Q8_0 conversion are licensed
|
|
8
|
+
under Apache-2.0. Weights are downloaded separately, never bundled here.
|
|
9
|
+
licenses/SmolLM2-APACHE-2.0.txt retains the license; pinned model cards, source URLs,
|
|
10
|
+
and their content digests are retained in licenses/model-provenance.json.
|
|
11
|
+
|
|
12
|
+
Platform packages contain the Rust dependency inventory and corresponding license
|
|
13
|
+
files under licenses/rust/. Pi is a host-provided peer and is not redistributed
|
|
14
|
+
inside this package. Native source is in native/ in the source distribution.
|
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Mario Zechner
|
|
4
|
+
Copyright (c) 2025-2026 Can Bölük
|
|
5
|
+
Copyright (c) 2026 Stencil Labs, Inc.
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
SOFTWARE.
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
|
|
2
|
+
---
|
|
3
|
+
|
|
4
|
+
library_name: transformers
|
|
5
|
+
license: apache-2.0
|
|
6
|
+
language:
|
|
7
|
+
- en
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
[](https://hf.co/QuantFactory)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# QuantFactory/SmolLM2-135M-GGUF
|
|
15
|
+
This is quantized version of [HuggingFaceTB/SmolLM2-135M](https://huggingface.co/HuggingFaceTB/SmolLM2-135M) created using llama.cpp
|
|
16
|
+
|
|
17
|
+
# Original Model Card
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# SmolLM2
|
|
22
|
+
|
|
23
|
+

|
|
24
|
+
|
|
25
|
+
## Table of Contents
|
|
26
|
+
|
|
27
|
+
1. [Model Summary](##model-summary)
|
|
28
|
+
2. [Limitations](##limitations)
|
|
29
|
+
3. [Training](##training)
|
|
30
|
+
4. [License](##license)
|
|
31
|
+
5. [Citation](##citation)
|
|
32
|
+
|
|
33
|
+
## Model Summary
|
|
34
|
+
|
|
35
|
+
SmolLM2 is a family of compact language models available in three size: 135M, 360M, and 1.7B parameters. They are capable of solving a wide range of tasks while being lightweight enough to run on-device.
|
|
36
|
+
|
|
37
|
+
SmolLM2 demonstrates significant advances over its predecessor SmolLM1, particularly in instruction following, knowledge, reasoning. The 135M model was trained on 2 trillion tokens using a diverse dataset combination: FineWeb-Edu, DCLM, The Stack, along with new filtered datasets we curated and will release soon. We developed the instruct version through supervised fine-tuning (SFT) using a combination of public datasets and our own curated datasets. We then applied Direct Preference Optimization (DPO) using [UltraFeedback](https://huggingface.co/datasets/HuggingFaceH4/ultrafeedback_binarized).
|
|
38
|
+
|
|
39
|
+
The instruct model additionally supports tasks such as text rewriting, summarization and function calling thanks to datasets developed by [Argilla](https://huggingface.co/argilla) such as [Synth-APIGen-v0.1](https://huggingface.co/datasets/argilla/Synth-APIGen-v0.1).
|
|
40
|
+
|
|
41
|
+
### How to use
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
pip install transformers
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
#### Running the model on CPU/GPU/multi GPU
|
|
48
|
+
* _Using full precision_
|
|
49
|
+
```python
|
|
50
|
+
# pip install transformers
|
|
51
|
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
52
|
+
checkpoint = "HuggingFaceTB/SmolLM2-135M"
|
|
53
|
+
device = "cuda" # for GPU usage or "cpu" for CPU usage
|
|
54
|
+
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
|
55
|
+
# for multiple GPUs install accelerate and do `model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto")`
|
|
56
|
+
model = AutoModelForCausalLM.from_pretrained(checkpoint).to(device)
|
|
57
|
+
inputs = tokenizer.encode("Gravity is", return_tensors="pt").to(device)
|
|
58
|
+
outputs = model.generate(inputs)
|
|
59
|
+
print(tokenizer.decode(outputs[0]))
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
* _Using `torch.bfloat16`_
|
|
63
|
+
```python
|
|
64
|
+
# pip install accelerate
|
|
65
|
+
import torch
|
|
66
|
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
67
|
+
checkpoint = "HuggingFaceTB/SmolLM2-135M"
|
|
68
|
+
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
|
69
|
+
# for fp16 use `torch_dtype=torch.float16` instead
|
|
70
|
+
model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto", torch_dtype=torch.bfloat16)
|
|
71
|
+
inputs = tokenizer.encode("Gravity is", return_tensors="pt").to("cuda")
|
|
72
|
+
outputs = model.generate(inputs)
|
|
73
|
+
print(tokenizer.decode(outputs[0]))
|
|
74
|
+
```
|
|
75
|
+
```bash
|
|
76
|
+
>>> print(f"Memory footprint: {model.get_memory_footprint() / 1e6:.2f} MB")
|
|
77
|
+
Memory footprint: 723.56 MB
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Evaluation
|
|
81
|
+
|
|
82
|
+
In this section, we report the evaluation results of SmolLM2. All evaluations are zero-shot unless stated otherwise, and we use [lighteval](https://github.com/huggingface/lighteval) to run them.
|
|
83
|
+
|
|
84
|
+
## Base pre-trained model
|
|
85
|
+
|
|
86
|
+
| Metrics | SmolLM2-135M-8k | SmolLM-135M |
|
|
87
|
+
|:-------------------|:----------------:|:------------:|
|
|
88
|
+
| HellaSwag | **42.1** | 41.2 |
|
|
89
|
+
| ARC (Average) | **43.9** | 42.4 |
|
|
90
|
+
| PIQA | 68.4 | 68.4 |
|
|
91
|
+
| MMLU (cloze) | **31.5** | 30.2 |
|
|
92
|
+
| CommonsenseQA | **33.9** | 32.7 |
|
|
93
|
+
| TriviaQA | 4.1 | **4.3** |
|
|
94
|
+
| Winogrande | 51.3 | 51.3 |
|
|
95
|
+
| OpenBookQA | **34.6** | 34.0 |
|
|
96
|
+
| GSM8K (5-shot) | **1.4** | 1.0 |
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
## Instruction model
|
|
100
|
+
|
|
101
|
+
| Metric | SmolLM2-135M-Instruct | SmolLM-135M-Instruct |
|
|
102
|
+
|:-----------------------------|:---------------------:|:--------------------:|
|
|
103
|
+
| IFEval (Average prompt/inst) | **29.9** | 17.2 |
|
|
104
|
+
| MT-Bench | **1.98** | 1.68 |
|
|
105
|
+
| HellaSwag | **40.9** | 38.9 |
|
|
106
|
+
| ARC (Average) | **37.3** | 33.9 |
|
|
107
|
+
| PIQA | **66.3** | 64.0 |
|
|
108
|
+
| MMLU (cloze) | **29.3** | 28.3 |
|
|
109
|
+
| BBH (3-shot) | **28.2** | 25.2 |
|
|
110
|
+
| GSM8K (5-shot) | 1.4 | 1.4 |
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
## Limitations
|
|
115
|
+
|
|
116
|
+
SmolLM2 models primarily understand and generate content in English. They can produce text on a variety of topics, but the generated content may not always be factually accurate, logically consistent, or free from biases present in the training data. These models should be used as assistive tools rather than definitive sources of information. Users should always verify important information and critically evaluate any generated content.
|
|
117
|
+
|
|
118
|
+
## Training
|
|
119
|
+
|
|
120
|
+
### Model
|
|
121
|
+
|
|
122
|
+
- **Architecture:** Transformer decoder
|
|
123
|
+
- **Pretraining tokens:** 2T
|
|
124
|
+
- **Precision:** bfloat16
|
|
125
|
+
|
|
126
|
+
### Hardware
|
|
127
|
+
|
|
128
|
+
- **GPUs:** 64 H100
|
|
129
|
+
|
|
130
|
+
### Software
|
|
131
|
+
|
|
132
|
+
- **Training Framework:** [nanotron](https://github.com/huggingface/nanotron/tree/main)
|
|
133
|
+
|
|
134
|
+
## License
|
|
135
|
+
|
|
136
|
+
[Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)
|
|
137
|
+
|
|
138
|
+
## Citation
|
|
139
|
+
```bash
|
|
140
|
+
@misc{allal2024SmolLM2,
|
|
141
|
+
title={SmolLM2 - with great data, comes great performance},
|
|
142
|
+
author={Loubna Ben Allal and Anton Lozhkov and Elie Bakouch and Gabriel Martín Blázquez and Lewis Tunstall and Agustín Piqueres and Andres Marafioti and Cyril Zakka and Leandro von Werra and Thomas Wolf},
|
|
143
|
+
year={2024},
|
|
144
|
+
}
|
|
145
|
+
```
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
---
|
|
2
|
+
library_name: transformers
|
|
3
|
+
license: apache-2.0
|
|
4
|
+
language:
|
|
5
|
+
- en
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# SmolLM2
|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+
## Table of Contents
|
|
14
|
+
|
|
15
|
+
1. [Model Summary](##model-summary)
|
|
16
|
+
2. [Limitations](##limitations)
|
|
17
|
+
3. [Training](##training)
|
|
18
|
+
4. [License](##license)
|
|
19
|
+
5. [Citation](##citation)
|
|
20
|
+
|
|
21
|
+
## Model Summary
|
|
22
|
+
|
|
23
|
+
SmolLM2 is a family of compact language models available in three size: 135M, 360M, and 1.7B parameters. They are capable of solving a wide range of tasks while being lightweight enough to run on-device. More details in our paper: https://arxiv.org/abs/2502.02737
|
|
24
|
+
|
|
25
|
+
SmolLM2 demonstrates significant advances over its predecessor SmolLM1, particularly in instruction following, knowledge, reasoning. The 135M model was trained on 2 trillion tokens using a diverse dataset combination: FineWeb-Edu, DCLM, The Stack, along with new filtered datasets we curated and will release soon. We developed the instruct version through supervised fine-tuning (SFT) using a combination of public datasets and our own curated datasets. We then applied Direct Preference Optimization (DPO) using [UltraFeedback](https://huggingface.co/datasets/HuggingFaceH4/ultrafeedback_binarized).
|
|
26
|
+
|
|
27
|
+
The instruct model additionally supports tasks such as text rewriting, summarization and function calling (for the 1.7B) thanks to datasets developed by [Argilla](https://huggingface.co/argilla) such as [Synth-APIGen-v0.1](https://huggingface.co/datasets/argilla/Synth-APIGen-v0.1).
|
|
28
|
+
You can find the SFT dataset here: https://huggingface.co/datasets/HuggingFaceTB/smol-smoltalk and finetuning code at https://github.com/huggingface/alignment-handbook/tree/main/recipes/smollm2
|
|
29
|
+
|
|
30
|
+
### How to use
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
pip install transformers
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
#### Running the model on CPU/GPU/multi GPU
|
|
37
|
+
* _Using full precision_
|
|
38
|
+
```python
|
|
39
|
+
# pip install transformers
|
|
40
|
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
41
|
+
checkpoint = "HuggingFaceTB/SmolLM2-135M"
|
|
42
|
+
device = "cuda" # for GPU usage or "cpu" for CPU usage
|
|
43
|
+
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
|
44
|
+
# for multiple GPUs install accelerate and do `model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto")`
|
|
45
|
+
model = AutoModelForCausalLM.from_pretrained(checkpoint).to(device)
|
|
46
|
+
inputs = tokenizer.encode("Gravity is", return_tensors="pt").to(device)
|
|
47
|
+
outputs = model.generate(inputs)
|
|
48
|
+
print(tokenizer.decode(outputs[0]))
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
* _Using `torch.bfloat16`_
|
|
52
|
+
```python
|
|
53
|
+
# pip install accelerate
|
|
54
|
+
import torch
|
|
55
|
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
56
|
+
checkpoint = "HuggingFaceTB/SmolLM2-135M"
|
|
57
|
+
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
|
58
|
+
# for fp16 use `torch_dtype=torch.float16` instead
|
|
59
|
+
model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto", torch_dtype=torch.bfloat16)
|
|
60
|
+
inputs = tokenizer.encode("Gravity is", return_tensors="pt").to("cuda")
|
|
61
|
+
outputs = model.generate(inputs)
|
|
62
|
+
print(tokenizer.decode(outputs[0]))
|
|
63
|
+
```
|
|
64
|
+
```bash
|
|
65
|
+
>>> print(f"Memory footprint: {model.get_memory_footprint() / 1e6:.2f} MB")
|
|
66
|
+
Memory footprint: 723.56 MB
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Evaluation
|
|
70
|
+
|
|
71
|
+
In this section, we report the evaluation results of SmolLM2. All evaluations are zero-shot unless stated otherwise, and we use [lighteval](https://github.com/huggingface/lighteval) to run them.
|
|
72
|
+
|
|
73
|
+
## Base pre-trained model
|
|
74
|
+
|
|
75
|
+
| Metrics | SmolLM2-135M-8k | SmolLM-135M |
|
|
76
|
+
|:-------------------|:----------------:|:------------:|
|
|
77
|
+
| HellaSwag | **42.1** | 41.2 |
|
|
78
|
+
| ARC (Average) | **43.9** | 42.4 |
|
|
79
|
+
| PIQA | 68.4 | 68.4 |
|
|
80
|
+
| MMLU (cloze) | **31.5** | 30.2 |
|
|
81
|
+
| CommonsenseQA | **33.9** | 32.7 |
|
|
82
|
+
| TriviaQA | 4.1 | **4.3** |
|
|
83
|
+
| Winogrande | 51.3 | 51.3 |
|
|
84
|
+
| OpenBookQA | **34.6** | 34.0 |
|
|
85
|
+
| GSM8K (5-shot) | **1.4** | 1.0 |
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## Instruction model
|
|
89
|
+
|
|
90
|
+
| Metric | SmolLM2-135M-Instruct | SmolLM-135M-Instruct |
|
|
91
|
+
|:-----------------------------|:---------------------:|:--------------------:|
|
|
92
|
+
| IFEval (Average prompt/inst) | **29.9** | 17.2 |
|
|
93
|
+
| MT-Bench | **1.98** | 1.68 |
|
|
94
|
+
| HellaSwag | **40.9** | 38.9 |
|
|
95
|
+
| ARC (Average) | **37.3** | 33.9 |
|
|
96
|
+
| PIQA | **66.3** | 64.0 |
|
|
97
|
+
| MMLU (cloze) | **29.3** | 28.3 |
|
|
98
|
+
| BBH (3-shot) | **28.2** | 25.2 |
|
|
99
|
+
| GSM8K (5-shot) | 1.4 | 1.4 |
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
## Limitations
|
|
104
|
+
|
|
105
|
+
SmolLM2 models primarily understand and generate content in English. They can produce text on a variety of topics, but the generated content may not always be factually accurate, logically consistent, or free from biases present in the training data. These models should be used as assistive tools rather than definitive sources of information. Users should always verify important information and critically evaluate any generated content.
|
|
106
|
+
|
|
107
|
+
## Training
|
|
108
|
+
|
|
109
|
+
### Model
|
|
110
|
+
|
|
111
|
+
- **Architecture:** Transformer decoder
|
|
112
|
+
- **Pretraining tokens:** 2T
|
|
113
|
+
- **Precision:** bfloat16
|
|
114
|
+
|
|
115
|
+
### Hardware
|
|
116
|
+
|
|
117
|
+
- **GPUs:** 64 H100
|
|
118
|
+
|
|
119
|
+
### Software
|
|
120
|
+
|
|
121
|
+
- **Training Framework:** [nanotron](https://github.com/huggingface/nanotron/tree/main)
|
|
122
|
+
|
|
123
|
+
## License
|
|
124
|
+
|
|
125
|
+
[Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)
|
|
126
|
+
|
|
127
|
+
## Citation
|
|
128
|
+
```bash
|
|
129
|
+
@misc{allal2025smollm2smolgoesbig,
|
|
130
|
+
title={SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Model},
|
|
131
|
+
author={Loubna Ben Allal and Anton Lozhkov and Elie Bakouch and Gabriel Martín Blázquez and Guilherme Penedo and Lewis Tunstall and Andrés Marafioti and Hynek Kydlíček and Agustín Piqueres Lajarín and Vaibhav Srivastav and Joshua Lochner and Caleb Fahlgren and Xuan-Son Nguyen and Clémentine Fourrier and Ben Burtenshaw and Hugo Larcher and Haojun Zhao and Cyril Zakka and Mathieu Morlon and Colin Raffel and Leandro von Werra and Thomas Wolf},
|
|
132
|
+
year={2025},
|
|
133
|
+
eprint={2502.02737},
|
|
134
|
+
archivePrefix={arXiv},
|
|
135
|
+
primaryClass={cs.CL},
|
|
136
|
+
url={https://arxiv.org/abs/2502.02737},
|
|
137
|
+
}
|
|
138
|
+
```
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "SmolLM2-MODEL-CARD.md",
|
|
4
|
+
"url": "https://huggingface.co/HuggingFaceTB/SmolLM2-135M/raw/93efa2f097d58c2a74874c7e644dbc9b0cee75a2/README.md",
|
|
5
|
+
"sha256": "d1ba68cae64a89b6b434b11526e6e2271ee5ffd2c914ec35ed515f9d84c6085c"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": "QuantFactory-MODEL-CARD.md",
|
|
9
|
+
"url": "https://huggingface.co/QuantFactory/SmolLM2-135M-GGUF/raw/d948db3614be18259a175aafd7689a70f1cb4e2f/README.md",
|
|
10
|
+
"sha256": "a1bf9f34ab9711a7fdcab29743ad87e650c353e8f40d404e57b3504af4603fee"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "SmolLM2-APACHE-2.0.txt",
|
|
14
|
+
"url": "https://www.apache.org/licenses/LICENSE-2.0.txt",
|
|
15
|
+
"sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"repo": "HuggingFaceTB/SmolLM2-135M",
|
|
19
|
+
"revision": "93efa2f097d58c2a74874c7e644dbc9b0cee75a2",
|
|
20
|
+
"license": "apache-2.0",
|
|
21
|
+
"upstreamLicenseFiles": []
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"repo": "QuantFactory/SmolLM2-135M-GGUF",
|
|
25
|
+
"revision": "d948db3614be18259a175aafd7689a70f1cb4e2f",
|
|
26
|
+
"license": "apache-2.0",
|
|
27
|
+
"upstreamLicenseFiles": []
|
|
28
|
+
}
|
|
29
|
+
]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 Andrew Gallant
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|