Text Generation
Transformers
Safetensors
llada2_moe
dllm
diffusion
llm
text_generation
conversational
custom_code
Instructions to use inclusionAI/LLaDA2.1-flash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use inclusionAI/LLaDA2.1-flash with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="inclusionAI/LLaDA2.1-flash", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("inclusionAI/LLaDA2.1-flash", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use inclusionAI/LLaDA2.1-flash with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "inclusionAI/LLaDA2.1-flash" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "inclusionAI/LLaDA2.1-flash", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/inclusionAI/LLaDA2.1-flash
- SGLang
How to use inclusionAI/LLaDA2.1-flash 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 "inclusionAI/LLaDA2.1-flash" \ --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": "inclusionAI/LLaDA2.1-flash", "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 "inclusionAI/LLaDA2.1-flash" \ --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": "inclusionAI/LLaDA2.1-flash", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use inclusionAI/LLaDA2.1-flash with Docker Model Runner:
docker model run hf.co/inclusionAI/LLaDA2.1-flash
Update README.md
Browse files
README.md
CHANGED
|
@@ -18,7 +18,9 @@ tags:
|
|
| 18 |
<div align="center">
|
| 19 |
<img src="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*biwvQpCmKjEAAAAAULAAAAgAemJ7AQ/original" width="800" />
|
| 20 |
</div>
|
|
|
|
| 21 |
---
|
|
|
|
| 22 |
<table>
|
| 23 |
<thead>
|
| 24 |
<tr>
|
|
@@ -113,7 +115,7 @@ tags:
|
|
| 113 |
<td align="left">MuSR</td>
|
| 114 |
<td align="center">79.15</td>
|
| 115 |
<td align="center">82.72</td>
|
| 116 |
-
<td align="center">
|
| 117 |
<td align="center">80.10 | 2.90</td>
|
| 118 |
<td align="center">79.84 | 1.85</td>
|
| 119 |
</tr>
|
|
@@ -137,7 +139,7 @@ tags:
|
|
| 137 |
<td align="left">PIQA</td>
|
| 138 |
<td align="center">91.57</td>
|
| 139 |
<td align="center">91.95</td>
|
| 140 |
-
<td align="center">
|
| 141 |
<td align="center">92.44 | 2.38</td>
|
| 142 |
<td align="center">92.17 | 1.44</td>
|
| 143 |
</tr>
|
|
|
|
| 18 |
<div align="center">
|
| 19 |
<img src="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*biwvQpCmKjEAAAAAULAAAAgAemJ7AQ/original" width="800" />
|
| 20 |
</div>
|
| 21 |
+
|
| 22 |
---
|
| 23 |
+
|
| 24 |
<table>
|
| 25 |
<thead>
|
| 26 |
<tr>
|
|
|
|
| 115 |
<td align="left">MuSR</td>
|
| 116 |
<td align="center">79.15</td>
|
| 117 |
<td align="center">82.72</td>
|
| 118 |
+
<td align="center">80.48 | 1.70</td>
|
| 119 |
<td align="center">80.10 | 2.90</td>
|
| 120 |
<td align="center">79.84 | 1.85</td>
|
| 121 |
</tr>
|
|
|
|
| 139 |
<td align="left">PIQA</td>
|
| 140 |
<td align="center">91.57</td>
|
| 141 |
<td align="center">91.95</td>
|
| 142 |
+
<td align="center">92.76 | 1.43</td>
|
| 143 |
<td align="center">92.44 | 2.38</td>
|
| 144 |
<td align="center">92.17 | 1.44</td>
|
| 145 |
</tr>
|