Instructions to use littlelearner/littlelearner-1.3b-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use littlelearner/littlelearner-1.3b-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="littlelearner/littlelearner-1.3b-base") 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-1.3b-base") model = AutoModelForCausalLM.from_pretrained("littlelearner/littlelearner-1.3b-base", 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-1.3b-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "littlelearner/littlelearner-1.3b-base" # 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-1.3b-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/littlelearner/littlelearner-1.3b-base
- SGLang
How to use littlelearner/littlelearner-1.3b-base 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-1.3b-base" \ --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-1.3b-base", "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-1.3b-base" \ --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-1.3b-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use littlelearner/littlelearner-1.3b-base with Docker Model Runner:
docker model run hf.co/littlelearner/littlelearner-1.3b-base
Add pipeline tag, library name, and project page link
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# littlelearner-1.3b-base
|
| 2 |
|
| 3 |
1.36B K-5-bounded base model (pretraining only).
|
| 4 |
|
| 5 |
Part of the [**LittleLearner**](https://arxiv.org/abs/2608.13545) scale-up study (*pedagogically-controlled knowledge exposure*): Qwen3 dense LMs trained on a corpus filtered to U.S. K-5 material (**bounded**) vs an unfiltered FineWeb-Edu corpus (**unbounded**), to measure what an interpretable knowledge boundary costs and grants.
|
| 6 |
|
|
|
|
|
|
|
| 7 |
## Model
|
| 8 |
- **Architecture:** Qwen3 dense (`Qwen3ForCausalLM`).
|
| 9 |
- **Size:** 1.358B params, hidden 2048, 26 layers, 16 query / 8 KV heads, FFN 5632. **Context:** 4096.
|
|
@@ -26,4 +33,4 @@ print(tok.decode(model.generate(**ids)[0], skip_special_tokens=True))
|
|
| 26 |
from vllm import LLM
|
| 27 |
llm = LLM("manueldeprada/littlelearner-1.3b-base")
|
| 28 |
print(llm.generate(["The sum of 2 and 3 is"])[0].outputs[0].text)
|
| 29 |
-
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pipeline_tag: text-generation
|
| 3 |
+
library_name: transformers
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
# littlelearner-1.3b-base
|
| 7 |
|
| 8 |
1.36B K-5-bounded base model (pretraining only).
|
| 9 |
|
| 10 |
Part of the [**LittleLearner**](https://arxiv.org/abs/2608.13545) scale-up study (*pedagogically-controlled knowledge exposure*): Qwen3 dense LMs trained on a corpus filtered to U.S. K-5 material (**bounded**) vs an unfiltered FineWeb-Edu corpus (**unbounded**), to measure what an interpretable knowledge boundary costs and grants.
|
| 11 |
|
| 12 |
+
**Project page:** [https://littlelearner-ll.github.io/](https://littlelearner-ll.github.io/)
|
| 13 |
+
|
| 14 |
## Model
|
| 15 |
- **Architecture:** Qwen3 dense (`Qwen3ForCausalLM`).
|
| 16 |
- **Size:** 1.358B params, hidden 2048, 26 layers, 16 query / 8 KV heads, FFN 5632. **Context:** 4096.
|
|
|
|
| 33 |
from vllm import LLM
|
| 34 |
llm = LLM("manueldeprada/littlelearner-1.3b-base")
|
| 35 |
print(llm.generate(["The sum of 2 and 3 is"])[0].outputs[0].text)
|
| 36 |
+
```
|