Text Generation
Transformers
Safetensors
English
qwen3
littlelearner
k5
conversational
text-generation-inference
Instructions to use littlelearner/littlelearner-5b-chatty with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use littlelearner/littlelearner-5b-chatty with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="littlelearner/littlelearner-5b-chatty") 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("littlelearner/littlelearner-5b-chatty") model = AutoModelForCausalLM.from_pretrained("littlelearner/littlelearner-5b-chatty", 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 littlelearner/littlelearner-5b-chatty with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "littlelearner/littlelearner-5b-chatty" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "littlelearner/littlelearner-5b-chatty", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/littlelearner/littlelearner-5b-chatty
- SGLang
How to use littlelearner/littlelearner-5b-chatty 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 "littlelearner/littlelearner-5b-chatty" \ --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": "littlelearner/littlelearner-5b-chatty", "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 "littlelearner/littlelearner-5b-chatty" \ --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": "littlelearner/littlelearner-5b-chatty", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use littlelearner/littlelearner-5b-chatty with Docker Model Runner:
docker model run hf.co/littlelearner/littlelearner-5b-chatty
Update README.md
Browse files
README.md
CHANGED
|
@@ -7,7 +7,7 @@ tags:
|
|
| 7 |
- k5
|
| 8 |
---
|
| 9 |
|
| 10 |
-
# littlelearner-5b-
|
| 11 |
|
| 12 |
5B K-5-bounded chat model with general chat, model identity, and format steerability installed by a behavior SFT on the blend base (chatty v2).
|
| 13 |
|
|
@@ -20,6 +20,14 @@ Part of the **LittleLearner** scale-up study (*pedagogically-controlled knowledg
|
|
| 20 |
- **Pretraining:** 88B tokens on K-5 **LittleCurriculum** (FineWeb-Edu filtered to U.S. grades K-5). WSD schedule, sharded Muon, MXFP8, Megatron-Core on 8xB200.
|
| 21 |
- **SFT:** behavior SFT directly on the cooloff-blend base (no intermediate SFT stage): K-5 math CoT (30k) + smoltalk general chat (15k) + K-5 GSM8K + format-control pairs (answer-only, show-steps, length constraints; user-turn and system-turn variants) + LittleLearner identity data. fp32 master parameters, lr 1e-5, 1 epoch. The model chats on casual prompts, states that it is LittleLearner, and follows answer-format instructions given in the user turn or the system prompt.
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
## Usage
|
| 24 |
|
| 25 |
```python
|
|
|
|
| 7 |
- k5
|
| 8 |
---
|
| 9 |
|
| 10 |
+
# littlelearner-5b-chatty
|
| 11 |
|
| 12 |
5B K-5-bounded chat model with general chat, model identity, and format steerability installed by a behavior SFT on the blend base (chatty v2).
|
| 13 |
|
|
|
|
| 20 |
- **Pretraining:** 88B tokens on K-5 **LittleCurriculum** (FineWeb-Edu filtered to U.S. grades K-5). WSD schedule, sharded Muon, MXFP8, Megatron-Core on 8xB200.
|
| 21 |
- **SFT:** behavior SFT directly on the cooloff-blend base (no intermediate SFT stage): K-5 math CoT (30k) + smoltalk general chat (15k) + K-5 GSM8K + format-control pairs (answer-only, show-steps, length constraints; user-turn and system-turn variants) + LittleLearner identity data. fp32 master parameters, lr 1e-5, 1 epoch. The model chats on casual prompts, states that it is LittleLearner, and follows answer-format instructions given in the user turn or the system prompt.
|
| 22 |
|
| 23 |
+
## Evaluation
|
| 24 |
+
MathCAMPS (paper-filtered):
|
| 25 |
+
- K-5 pass@64 **78.7** / pass@1 **31.4**
|
| 26 |
+
Behavior probes (greedy):
|
| 27 |
+
- casual prompts get conversational replies; identity answered as LittleLearner
|
| 28 |
+
- answer-format instruction obedience: user turn **0.90**, held-out system prompt **0.85**
|
| 29 |
+
|
| 30 |
+
|
| 31 |
## Usage
|
| 32 |
|
| 33 |
```python
|