Text Generation
Transformers
Safetensors
GGUF
gemma3_text
turkish
türkiye
english
ai
lamapi
gemma3
next
next-x1
efficient
open-source
1b
huggingface
large-language-model
llm
causal
transformer
artificial-intelligence
machine-learning
ai-research
natural-language-processing
nlp
finetuned
lightweight
creative
summarization
question-answering
chat-model
generative-ai
optimized-model
unsloth
trl
sft
chemistry
biology
finance
legal
music
art
code
climate
medical
agent
text-generation-inference
conversational
Instructions to use thelamapi/next-1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use thelamapi/next-1b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="thelamapi/next-1b") 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("thelamapi/next-1b") model = AutoModelForCausalLM.from_pretrained("thelamapi/next-1b", 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use thelamapi/next-1b with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf thelamapi/next-1b:BF16 # Run inference directly in the terminal: llama cli -hf thelamapi/next-1b:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf thelamapi/next-1b:BF16 # Run inference directly in the terminal: llama cli -hf thelamapi/next-1b:BF16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf thelamapi/next-1b:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf thelamapi/next-1b:BF16
Use Docker
docker model run hf.co/thelamapi/next-1b:BF16
- Llama new
- LM Studio
- Jan
- vLLM
How to use thelamapi/next-1b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "thelamapi/next-1b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "thelamapi/next-1b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/thelamapi/next-1b:BF16
- SGLang
How to use thelamapi/next-1b 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 "thelamapi/next-1b" \ --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": "thelamapi/next-1b", "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 "thelamapi/next-1b" \ --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": "thelamapi/next-1b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use thelamapi/next-1b with Ollama:
ollama run hf.co/thelamapi/next-1b:BF16
- Unsloth Desktop
- Docker Model Runner
How to use thelamapi/next-1b with Docker Model Runner:
docker model run hf.co/thelamapi/next-1b:BF16
- Lemonade
How to use thelamapi/next-1b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull thelamapi/next-1b:BF16
Run and chat with the model
lemonade run user.next-1b-BF16
List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -173,7 +173,7 @@ Ideal for **developers, students, and organizations** needing **fast, reliable,
|
|
| 173 |
</thead>
|
| 174 |
<tbody>
|
| 175 |
<tr class="next">
|
| 176 |
-
<td data-label="Model">Next 4B preview
|
| 177 |
<td data-label="MMLU (5-shot) %">84.6</td>
|
| 178 |
<td data-label="MMLU-Pro %">66.9</td>
|
| 179 |
<td data-label="GSM8K %">82.7</td>
|
|
@@ -205,7 +205,7 @@ Ideal for **developers, students, and organizations** needing **fast, reliable,
|
|
| 205 |
|
| 206 |
---
|
| 207 |
|
| 208 |
-
# Also, our Next
|
| 209 |
<table>
|
| 210 |
<thead>
|
| 211 |
<tr>
|
|
@@ -218,32 +218,32 @@ Ideal for **developers, students, and organizations** needing **fast, reliable,
|
|
| 218 |
</thead>
|
| 219 |
<tbody>
|
| 220 |
<tr class="next">
|
| 221 |
-
<td
|
| 222 |
-
<td
|
| 223 |
-
<td
|
| 224 |
-
<td
|
| 225 |
-
<td
|
| 226 |
</tr>
|
| 227 |
-
<tr
|
| 228 |
-
<td
|
| 229 |
-
<td
|
| 230 |
-
<td
|
| 231 |
-
<td
|
| 232 |
-
<td
|
| 233 |
</tr>
|
| 234 |
<tr>
|
| 235 |
-
<td
|
| 236 |
-
<td
|
| 237 |
-
<td
|
| 238 |
-
<td
|
| 239 |
-
<td
|
| 240 |
</tr>
|
| 241 |
<tr>
|
| 242 |
-
<td
|
| 243 |
-
<td
|
| 244 |
-
<td
|
| 245 |
-
<td
|
| 246 |
-
<td
|
| 247 |
</tr>
|
| 248 |
</tbody>
|
| 249 |
</table>
|
|
|
|
| 173 |
</thead>
|
| 174 |
<tbody>
|
| 175 |
<tr class="next">
|
| 176 |
+
<td data-label="Model">Next 4B preview</td>
|
| 177 |
<td data-label="MMLU (5-shot) %">84.6</td>
|
| 178 |
<td data-label="MMLU-Pro %">66.9</td>
|
| 179 |
<td data-label="GSM8K %">82.7</td>
|
|
|
|
| 205 |
|
| 206 |
---
|
| 207 |
|
| 208 |
+
# Also, our Next 14b model is leading to state-of-the-art models in some of the Benchmarks.
|
| 209 |
<table>
|
| 210 |
<thead>
|
| 211 |
<tr>
|
|
|
|
| 218 |
</thead>
|
| 219 |
<tbody>
|
| 220 |
<tr class="next">
|
| 221 |
+
<td><strong>Next 14B (Thinking)</strong></td>
|
| 222 |
+
<td><strong>94.6</strong></td>
|
| 223 |
+
<td><strong>93.2</strong></td>
|
| 224 |
+
<td><strong>98.8</strong></td>
|
| 225 |
+
<td>92.7</td>
|
| 226 |
</tr>
|
| 227 |
+
<tr>
|
| 228 |
+
<td>Next 12B</td>
|
| 229 |
+
<td>92.7</td>
|
| 230 |
+
<td>84.4</td>
|
| 231 |
+
<td>95.3</td>
|
| 232 |
+
<td>87.2</td>
|
| 233 |
</tr>
|
| 234 |
<tr>
|
| 235 |
+
<td>GPT-5</td>
|
| 236 |
+
<td>92.5</td>
|
| 237 |
+
<td>87.0</td>
|
| 238 |
+
<td>98.4</td>
|
| 239 |
+
<td><strong>96.0</strong></td>
|
| 240 |
</tr>
|
| 241 |
<tr>
|
| 242 |
+
<td>Claude Opus 4.1 (Thinking)</td>
|
| 243 |
+
<td>~92.0</td>
|
| 244 |
+
<td>87.8</td>
|
| 245 |
+
<td>84.7</td>
|
| 246 |
+
<td>95.4</td>
|
| 247 |
</tr>
|
| 248 |
</tbody>
|
| 249 |
</table>
|