Text Generation
Transformers
Safetensors
English
Korean
llama
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use skt/A.X-3.1-Light with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use skt/A.X-3.1-Light with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="skt/A.X-3.1-Light") 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("skt/A.X-3.1-Light") model = AutoModelForCausalLM.from_pretrained("skt/A.X-3.1-Light", 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 skt/A.X-3.1-Light with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "skt/A.X-3.1-Light" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "skt/A.X-3.1-Light", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/skt/A.X-3.1-Light
- SGLang
How to use skt/A.X-3.1-Light 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 "skt/A.X-3.1-Light" \ --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": "skt/A.X-3.1-Light", "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 "skt/A.X-3.1-Light" \ --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": "skt/A.X-3.1-Light", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use skt/A.X-3.1-Light with Docker Model Runner:
docker model run hf.co/skt/A.X-3.1-Light
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -110,7 +110,7 @@ Rigorous data curation and two-stage training with STEM-focused data enabled com
|
|
| 110 |
</tr></thead>
|
| 111 |
<tbody>
|
| 112 |
<tr>
|
| 113 |
-
<td rowspan="
|
| 114 |
<td>KMMLU</td>
|
| 115 |
<td>61.70</td>
|
| 116 |
<td>48.28</td>
|
|
@@ -118,6 +118,22 @@ Rigorous data curation and two-stage training with STEM-focused data enabled com
|
|
| 118 |
<td>49.56</td>
|
| 119 |
<td>63.53</td>
|
| 120 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
<tr>
|
| 122 |
<td>CLIcK</td>
|
| 123 |
<td>71.22</td>
|
|
|
|
| 110 |
</tr></thead>
|
| 111 |
<tbody>
|
| 112 |
<tr>
|
| 113 |
+
<td rowspan="6">Knowledge</td>
|
| 114 |
<td>KMMLU</td>
|
| 115 |
<td>61.70</td>
|
| 116 |
<td>48.28</td>
|
|
|
|
| 118 |
<td>49.56</td>
|
| 119 |
<td>63.53</td>
|
| 120 |
</tr>
|
| 121 |
+
<tr>
|
| 122 |
+
<td>KMMLU-pro</td>
|
| 123 |
+
<td>45.54</td>
|
| 124 |
+
<td>37.63</td>
|
| 125 |
+
<td>40.11</td>
|
| 126 |
+
<td>38.87</td>
|
| 127 |
+
<td>50.71</td>
|
| 128 |
+
</tr>
|
| 129 |
+
<tr>
|
| 130 |
+
<td>KMMLU-redux</td>
|
| 131 |
+
<td>52.34</td>
|
| 132 |
+
<td>35.33</td>
|
| 133 |
+
<td>42.21</td>
|
| 134 |
+
<td>38.58</td>
|
| 135 |
+
<td>55.74</td>
|
| 136 |
+
</tr>
|
| 137 |
<tr>
|
| 138 |
<td>CLIcK</td>
|
| 139 |
<td>71.22</td>
|