Text Generation
Transformers
Safetensors
English
llama
proof
cot
reasoning
math
calculus
logic
sft
trl
Generated from Trainer
finetune
symbioticai
convergentintel
conversational
text-generation-inference
Instructions to use reaperdoesntknow/SMOLM2Prover with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use reaperdoesntknow/SMOLM2Prover with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="reaperdoesntknow/SMOLM2Prover") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("reaperdoesntknow/SMOLM2Prover") model = AutoModelForCausalLM.from_pretrained("reaperdoesntknow/SMOLM2Prover", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use reaperdoesntknow/SMOLM2Prover with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "reaperdoesntknow/SMOLM2Prover" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "reaperdoesntknow/SMOLM2Prover", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/reaperdoesntknow/SMOLM2Prover
- SGLang
How to use reaperdoesntknow/SMOLM2Prover with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "reaperdoesntknow/SMOLM2Prover" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "reaperdoesntknow/SMOLM2Prover", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "reaperdoesntknow/SMOLM2Prover" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "reaperdoesntknow/SMOLM2Prover", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use reaperdoesntknow/SMOLM2Prover with Docker Model Runner:
docker model run hf.co/reaperdoesntknow/SMOLM2Prover
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,140 +1,3 @@
|
|
| 1 |
-
|
| 2 |
-
Hugging Face's logo Hugging Face
|
| 3 |
-
|
| 4 |
-
Models
|
| 5 |
-
Datasets
|
| 6 |
-
Spaces
|
| 7 |
-
Docs
|
| 8 |
-
Enterprise
|
| 9 |
-
Pricing
|
| 10 |
-
|
| 11 |
-
reaperdoesntknow
|
| 12 |
-
/
|
| 13 |
-
SmolLM2_Thinks
|
| 14 |
-
Text Generation
|
| 15 |
-
Transformers
|
| 16 |
-
PyTorch
|
| 17 |
-
English
|
| 18 |
-
llama
|
| 19 |
-
Generated from Trainer
|
| 20 |
-
sft
|
| 21 |
-
trl
|
| 22 |
-
proof
|
| 23 |
-
cot
|
| 24 |
-
reasoning
|
| 25 |
-
symbioticai
|
| 26 |
-
calculus
|
| 27 |
-
logic
|
| 28 |
-
SFT
|
| 29 |
-
TRL
|
| 30 |
-
datasets
|
| 31 |
-
finetune
|
| 32 |
-
conversational
|
| 33 |
-
text-generation-inference
|
| 34 |
-
Model card
|
| 35 |
-
Files and versions
|
| 36 |
-
xet
|
| 37 |
-
Community
|
| 38 |
-
Settings
|
| 39 |
-
SmolLM2_Thinks/
|
| 40 |
-
|
| 41 |
-
license
|
| 42 |
-
|
| 43 |
-
datasets
|
| 44 |
-
|
| 45 |
-
language
|
| 46 |
-
|
| 47 |
-
metrics
|
| 48 |
-
|
| 49 |
-
base_model
|
| 50 |
-
|
| 51 |
-
new_version
|
| 52 |
-
|
| 53 |
-
pipeline_tag
|
| 54 |
-
|
| 55 |
-
library_name
|
| 56 |
-
|
| 57 |
-
tags
|
| 58 |
-
|
| 59 |
-
Eval Results
|
| 60 |
-
View doc
|
| 61 |
-
1
|
| 62 |
-
2
|
| 63 |
-
3
|
| 64 |
-
4
|
| 65 |
-
5
|
| 66 |
-
6
|
| 67 |
-
7
|
| 68 |
-
8
|
| 69 |
-
9
|
| 70 |
-
10
|
| 71 |
-
11
|
| 72 |
-
12
|
| 73 |
-
13
|
| 74 |
-
14
|
| 75 |
-
15
|
| 76 |
-
16
|
| 77 |
-
17
|
| 78 |
-
18
|
| 79 |
-
19
|
| 80 |
-
20
|
| 81 |
-
21
|
| 82 |
-
22
|
| 83 |
-
23
|
| 84 |
-
24
|
| 85 |
-
25
|
| 86 |
-
26
|
| 87 |
-
27
|
| 88 |
-
28
|
| 89 |
-
29
|
| 90 |
-
30
|
| 91 |
-
31
|
| 92 |
-
32
|
| 93 |
-
33
|
| 94 |
-
34
|
| 95 |
-
35
|
| 96 |
-
36
|
| 97 |
-
37
|
| 98 |
-
38
|
| 99 |
-
39
|
| 100 |
-
40
|
| 101 |
-
41
|
| 102 |
-
42
|
| 103 |
-
43
|
| 104 |
-
44
|
| 105 |
-
45
|
| 106 |
-
46
|
| 107 |
-
47
|
| 108 |
-
48
|
| 109 |
-
49
|
| 110 |
-
50
|
| 111 |
-
51
|
| 112 |
-
52
|
| 113 |
-
53
|
| 114 |
-
54
|
| 115 |
-
55
|
| 116 |
-
56
|
| 117 |
-
57
|
| 118 |
-
58
|
| 119 |
-
59
|
| 120 |
-
60
|
| 121 |
-
61
|
| 122 |
-
62
|
| 123 |
-
63
|
| 124 |
-
64
|
| 125 |
-
65
|
| 126 |
-
⌄
|
| 127 |
-
⌄
|
| 128 |
-
⌄
|
| 129 |
-
⌄
|
| 130 |
-
⌄
|
| 131 |
-
⌄
|
| 132 |
-
⌄
|
| 133 |
-
⌄
|
| 134 |
-
⌄
|
| 135 |
-
⌄
|
| 136 |
-
⌄
|
| 137 |
-
⌄
|
| 138 |
---
|
| 139 |
library_name: transformers
|
| 140 |
model_name: SmolLM2_Thinks
|
|
@@ -200,7 +63,10 @@ Cite TRL as:
|
|
| 200 |
```bibtex
|
| 201 |
@misc{vonwerra2022trl,
|
| 202 |
title = {{TRL: Transformer Reinforcement Learning}},
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
model_name: SmolLM2_Thinks
|
|
|
|
| 63 |
```bibtex
|
| 64 |
@misc{vonwerra2022trl,
|
| 65 |
title = {{TRL: Transformer Reinforcement Learning}},
|
| 66 |
+
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
|
| 67 |
+
year = 2020,
|
| 68 |
+
journal = {GitHub repository},
|
| 69 |
+
publisher = {GitHub},
|
| 70 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
| 71 |
+
}
|
| 72 |
+
```
|