Text Generation
Transformers
Safetensors
qwen3
turkish
türkiye
reasoning
ai
lamapi
gemma3
next
next-x1
open-source
32b
large-language-model
llm
transformer
artificial-intelligence
machine-learning
nlp
multilingual
instruction-tuned
chat
generative-ai
optimized
trl
sft
cognitive
analytical
enterprise
industrial
conversational
text-generation-inference
4-bit precision
bitsandbytes
Instructions to use Lamapi/next-32b-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lamapi/next-32b-4bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Lamapi/next-32b-4bit") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Lamapi/next-32b-4bit") model = AutoModelForCausalLM.from_pretrained("Lamapi/next-32b-4bit") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Lamapi/next-32b-4bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Lamapi/next-32b-4bit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Lamapi/next-32b-4bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Lamapi/next-32b-4bit
- SGLang
How to use Lamapi/next-32b-4bit 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 "Lamapi/next-32b-4bit" \ --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": "Lamapi/next-32b-4bit", "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 "Lamapi/next-32b-4bit" \ --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": "Lamapi/next-32b-4bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Lamapi/next-32b-4bit with Docker Model Runner:
docker model run hf.co/Lamapi/next-32b-4bit
Update README.md
Browse files
README.md
CHANGED
|
@@ -82,68 +82,6 @@ Designed for high-demand enterprise environments, **Next 32B** delivers superior
|
|
| 82 |
- 🏢 **Industrial-grade stability for critical infrastructure**
|
| 83 |
- 💬 **Expert instruction-following for complex, long-horizon tasks**
|
| 84 |
|
| 85 |
-
---
|
| 86 |
-
|
| 87 |
-
## 📊 Benchmark Performance
|
| 88 |
-
|
| 89 |
-
<table>
|
| 90 |
-
<thead>
|
| 91 |
-
<tr>
|
| 92 |
-
<th>Model</th>
|
| 93 |
-
<th>MMLU (5-shot) %</th>
|
| 94 |
-
<th>MMLU-Pro (Reasoning) %</th>
|
| 95 |
-
<th>GSM8K %</th>
|
| 96 |
-
<th>MATH %</th>
|
| 97 |
-
</tr>
|
| 98 |
-
</thead>
|
| 99 |
-
<tbody>
|
| 100 |
-
<tr>
|
| 101 |
-
<td><strong>Next 32B (Thinking)</strong></td>
|
| 102 |
-
<td>96.2</td>
|
| 103 |
-
<td><strong>97.1</strong></td>
|
| 104 |
-
<td><strong>99.7</strong></td>
|
| 105 |
-
<td>97.1</td>
|
| 106 |
-
</tr>
|
| 107 |
-
<tr>
|
| 108 |
-
<td>GPT-5.1</td>
|
| 109 |
-
<td><strong>98.4</strong></td>
|
| 110 |
-
<td>95.9</td>
|
| 111 |
-
<td>99.7</td>
|
| 112 |
-
<td><strong>98.5</strong></td>
|
| 113 |
-
</tr>
|
| 114 |
-
<tr>
|
| 115 |
-
<td>Claude Opus 4.5</td>
|
| 116 |
-
<td>97.5</td>
|
| 117 |
-
<td>96.5</td>
|
| 118 |
-
<td>99.2</td>
|
| 119 |
-
<td>97.8</td>
|
| 120 |
-
</tr>
|
| 121 |
-
<tr>
|
| 122 |
-
<td>Gemini 3 Pro</td>
|
| 123 |
-
<td>97.9</td>
|
| 124 |
-
<td>94.8</td>
|
| 125 |
-
<td>98.9</td>
|
| 126 |
-
<td>96.4</td>
|
| 127 |
-
</tr>
|
| 128 |
-
<tr>
|
| 129 |
-
<td>Grok 4.1</td>
|
| 130 |
-
<td>96.1</td>
|
| 131 |
-
<td>92.4</td>
|
| 132 |
-
<td>97.8</td>
|
| 133 |
-
<td>95.2</td>
|
| 134 |
-
</tr>
|
| 135 |
-
<tr>
|
| 136 |
-
<td>Next 14B (prev)</td>
|
| 137 |
-
<td>94.6</td>
|
| 138 |
-
<td>93.2</td>
|
| 139 |
-
<td>98.8</td>
|
| 140 |
-
<td>92.7</td>
|
| 141 |
-
</tr>
|
| 142 |
-
</tbody>
|
| 143 |
-
</table>
|
| 144 |
-
|
| 145 |
-
---
|
| 146 |
-
|
| 147 |
## 🚀 Installation & Usage
|
| 148 |
|
| 149 |
**Note:** Due to the model size, we recommend using a GPU with at least 24GB VRAM (for 4-bit quantization) or 48GB+ (for 8-bit/FP16).
|
|
|
|
| 82 |
- 🏢 **Industrial-grade stability for critical infrastructure**
|
| 83 |
- 💬 **Expert instruction-following for complex, long-horizon tasks**
|
| 84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
## 🚀 Installation & Usage
|
| 86 |
|
| 87 |
**Note:** Due to the model size, we recommend using a GPU with at least 24GB VRAM (for 4-bit quantization) or 48GB+ (for 8-bit/FP16).
|