Views
No views yet
--tensor-type option in llama.cpp to manually "bump" important layers to higher precision. You can see the implementation here:
| Benchmarks | A.X 4.0 | Qwen3-235B-A22B (w/o reasoning) | Qwen2.5-72B | GPT-4o | |
|---|---|---|---|---|---|
| Knowledge | KMMLU | 78.32 | 73.64 | 66.44 | 72.51 |
| CLIcK | 83.51 | 74.55 | 72.59 | 80.22 | |
| KoBALT | 47.30 | 41.57 | 37.00 | 44.00 | |
| MMLU | 86.62 | 87.37 | 85.70 | 88.70 | |
| General | Ko-MT-Bench | 86.69 | 88.00 | 82.69 | 88.44 |
| MT-Bench | 83.25 | 86.56 | 93.50 | 88.19 | |
| LiveBench2024.11 | 52.30 | 64.50 | 54.20 | 52.19 | |
| Instruction Following | Ko-IFEval | 77.96 | 77.53 | 77.07 | 75.38 |
| IFEval | 86.05 | 85.77 | 86.54 | 83.86 | |
| Math | HRM8K | 48.55 | 54.52 | 46.37 | 43.27 |
| MATH | 74.28 | 72.72 | 77.00 | 72.38 | |
| Code | HumanEval+ | 79.27 | 79.27 | 81.71 | 86.00 |
| MBPP+ | 73.28 | 70.11 | 75.66 | 75.10 | |
| LiveCodeBench2024.10~2025.04 | 26.07 | 33.09 | 27.58 | 29.30 | |
| Long Context | LongBench<128K | 56.70 | 49.40 | 45.60 | 47.50 |
| Tool-use | FunctionChatBench | 85.96 | 82.43 | 88.30 | 95.70 |
| Benchmarks | A.X 4.0 Light | Qwen3-8B (w/o reasoning) | Qwen2.5-7B | EXAONE-3.5-7.8B | Kanana-1.5-8B | |
|---|---|---|---|---|---|---|
| Knowledge | KMMLU | 64.15 | 63.53 | 49.56 | 53.76 | 48.28 |
| CLIcK | 68.05 | 62.71 | 60.56 | 64.30 | 61.30 | |
| KoBALT | 30.29 | 26.57 | 21.57 | 21.71 | 23.14 | |
| MMLU | 75.43 | 82.89 | 75.40 | 72.20 | 68.82 | |
| General | Ko-MT-Bench | 79.50 | 64.06 | 61.31 | 81.06 | 76.30 |
| MT-Bench | 81.56 | 65.69 | 79.37 | 83.50 | 77.60 | |
| LiveBench | 37.10 | 50.20 | 37.00 | 40.20 | 29.40 | |
| Instruction Following | Ko-IFEval | 72.99 | 73.39 | 60.73 | 65.01 | 69.96 |
| IFEval | 84.68 | 85.38 | 76.73 | 82.61 | 80.11 | |
| Math | HRM8K | 40.12 | 52.50 | 35.13 | 31.88 | 30.87 |
| MATH | 68.88 | 71.48 | 65.58 | 63.20 | 59.28 | |
| Code | HumanEval+ | 75.61 | 77.44 | 74.39 | 76.83 | 76.83 |
| MBPP+ | 67.20 | 62.17 | 68.50 | 64.29 | 67.99 | |
| LiveCodeBench | 18.03 | 23.93 | 16.62 | 17.98 | 16.52 |
transformers>=4.46.0 or the latest version is required to use skt/A.X-4.0-Lightpip install transformers>=4.46.01import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4model_name = "skt/A.X-4.0-Light"
5model = AutoModelForCausalLM.from_pretrained(
6 model_name,
7 torch_dtype=torch.bfloat16,
8 device_map="auto",
9)
10model.eval()
11tokenizer = AutoTokenizer.from_pretrained(model_name)
12
13messages = [
14 {"role": "system", "content": "당신은 사용자가 제공하는 영어 문장들을 한국어로 번역하는 AI 전문가입니다."},
15 {"role": "user", "content": "The first human went into space and orbited the Earth on April 12, 1961."},
16]
17input_ids = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
18
19with torch.no_grad():
20 output = model.generate(
21 input_ids,
22 max_new_tokens=128,
23 do_sample=False,
24 )
25
26len_input_prompt = len(input_ids[0])
27response = tokenizer.decode(output[0][len_input_prompt:], skip_special_tokens=True)
28print(response)
29# Output:
30# 1961년 4월 12일, 최초의 인간이 우주로 나가 지구를 공전했습니다.vllm>=v0.6.4.post1 or the latest version is required to use tool-use function1pip install vllm>=v0.6.4.post1
2# if you don't want to activate tool-use function, just commenting out below vLLM option
3VLLM_OPTION="--enable-auto-tool-choice --tool-call-parser hermes"
4vllm serve skt/A.X-4.0-Light $VLLM_OPTION1from openai import OpenAI
2
3def call(messages, model):
4 completion = client.chat.completions.create(
5 model=model,
6 messages=messages,
7 )
8 print(completion.choices[0].message)
9
10client = OpenAI(
11 base_url="http://localhost:8000/v1",
12 api_key="api_key"
13)
14model = "skt/A.X-4.0-Light"
15messages = [{"role": "user", "content": "에어컨 여름철 적정 온도는? 한줄로 답변해줘"}]
16call(messages, model)
17# Output:
18# ChatCompletionMessage(content='여름철 적정 에어컨 온도는 일반적으로 24-26도입니다.', refusal=None, role='assistant', audio=None, function_call=None, tool_calls=[], reasoning_content=None)
19
20messages = [{"role": "user", "content": "What is the appropriate temperature for air conditioning in summer? Response in a single sentence."}]
21call(messages, model)
22# Output:
23# ChatCompletionMessage(content='The appropriate temperature for air conditioning in summer generally ranges from 72°F to 78°F (22°C to 26°C) for comfort and energy efficiency.', refusal=None, role='assistant', audio=None, function_call=None, tool_calls=[], reasoning_content=None)1from openai import OpenAI
2
3
4def call(messages, model):
5 completion = client.chat.completions.create(
6 model=model,
7 messages=messages,
8 tools=tools
9 )
10 print(completion.choices[0].message)
11
12
13client = OpenAI(
14 base_url="http://localhost:8000/v1",
15 api_key="api_key"
16)
17model = "skt/A.X-4.0-Light"
18
19calculate_discount = {
20 "type": "function",
21 "function": {
22 "name": "calculate_discount",
23 "description": "원가격과 할인율(퍼센트 단위)을 입력받아 할인된 가격을계산한다.",
24 "parameters": {
25 "type": "object",
26 "properties": {
27 "original_price": {
28 "type": "number",
29 "description": "상품의 원래 가격"
30 },
31 "discount_percentage": {
32 "type": "number",
33 "description": "적용할 할인율(예: 20% 할인의 경우 20을 입력)"
34 }
35 },
36 "required": ["original_price", "discount_percentage"]
37 }
38 }
39}
40get_exchange_rate = {
41 "type": "function",
42 "function": {
43 "name": "get_exchange_rate",
44 "description": "두 통화 간의 환율을 가져온다.",
45 "parameters": {
46 "type": "object",
47 "properties": {
48 "base_currency": {
49 "type": "string",
50 "description": "The currency to convert from."
51 },
52 "target_currency": {
53 "type": "string",
54 "description": "The currency to convert to."
55 }
56 },
57 "required": ["base_currency", "target_currency"]
58 }
59 }
60}
61tools = [calculate_discount, get_exchange_rate]
62
63### Slot filling ###
64messages = [{"role": "user", "content": "우리가 뭘 사야되는데 원래 57600원인데 직원할인 받을 수 있거든? 할인가좀 계산해줘"}]
65call(messages, model)
66# Output:
67# ChatCompletionMessage(content='할인율을 알려주시겠습니까?', refusal=None, role='assistant', audio=None, function_call=None, tool_calls=[], reasoning_content=None)
68
69
70### Function calling ###
71messages = [
72 {"role": "user", "content": "우리가 뭘 사야되는데 원래 57600원인데 직원할인 받을 수 있거든? 할인가좀 계산해줘"},
73 {"role": "assistant", "content": "할인율을 알려주시겠습니까?"},
74 {"role": "user", "content": "15% 할인 받을 수 있어."},
75]
76call(messages, model)
77# Output:
78# ChatCompletionMessage(content=None, refusal=None, role='assistant', audio=None, function_call=None, tool_calls=[ChatCompletionMessageToolCall(id='chatcmpl-tool-7778d1d9fca94bf2acbb44c79359502c', function=Function(arguments='{"original_price": 57600, "discount_percentage": 15}', name='calculate_discount'), type='function')], reasoning_content=None)
79
80
81### Completion ###
82messages = [
83 {"role": "user", "content": "우리가 뭘 사야되는데 원래 57600원인데 직원할인 받을 수 있거든? 할인가좀 계산해줘"},
84 {"role": "assistant", "content": "할인율을 알려주시겠습니까?"},
85 {"role": "user", "content": "15% 할인 받을 수 있어."},
86 {"role": "tool", "tool_call_id": "random_id", "name": "calculate_discount", "content": "{\"original_price\": 57600, \"discount_percentage\": 15, \"discounted_price\": 48960.0}"}
87]
88call(messages, model)
89# Output:
90# ChatCompletionMessage(content='57600원의 상품에서 15% 할인을 적용하면, 할인된 가격은 48960원입니다.', refusal=None, role='assistant', audio=None, function_call=None, tool_calls=[], reasoning_content=None)A.X 4.0 Light model is licensed under Apache License 2.0.@article{SKTAdotX4Light,
title={A.X 4.0 Light},
author={SKT AI Model Lab},
year={2025},
url={https://huggingface.co/skt/A.X-4.0-Light}
}TurboLLM (GPT-4.1-mini)HugLLM (Hugginface Open-source models)TestLLM (Experimental CPU-only)"Give me info on my websites SSL certificate""Check if my server is using quantum safe encyption for communication""Run a comprehensive security audit on my server"