Downloads Β· 30 days
20
27% of all-time downloads
OpenLLM-Korea/A.X-4.0-Light
A.X-4.0-Light is a text generation model from OpenLLM-Korea. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
<p align="center" <picture <img src="./assets/A.Xlogoko4x3.png" width="45%" style="margin: 40px auto;" </picture </p <p align="center" <a href="https://huggingface.co/collections/skt/ax-4-68637ebaa63b9cc51925e886"π€ Mβ¦
Downloads Β· 30 days
20
27% of all-time downloads
All-time downloads
74
Public
Parameters
7.3B
14.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors14.5 GB Β· 100%
From the Hugging Face model README
SK Telecom released A.X 4.0 (pronounced "A dot X"), a large language model (LLM) optimized for Korean-language understanding and enterprise deployment, on July 03, 2025. Built on the open-source Qwen2.5 model, A.X 4.0 has been further trained with large-scale Korean datasets to deliver outstanding performance in real-world business environments.
transformers>=4.46.0 or the latest version is required to use skt/A.X-4.0-Lightpip install transformers>=4.46.0
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "skt/A.X-4.0-Light"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.bfloat16,
device_map="auto",
)
model.eval()
tokenizer = AutoTokenizer.from_pretrained(model_name)
messages = [
{"role": "system", "content": "λΉμ μ μ¬μ©μκ° μ 곡νλ μμ΄ λ¬Έμ₯λ€μ νκ΅μ΄λ‘ λ²μνλ AI μ λ¬Έκ°μ
λλ€."},
{"role": "user", "content": "The first human went into space and orbited the Earth on April 12, 1961."},
]
input_ids = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
with torch.no_grad():
output = model.generate(
input_ids,
max_new_tokens=128,
do_sample=False,
)
len_input_prompt = len(input_ids[0])
response = tokenizer.decode(output[0][len_input_prompt:], skip_special_tokens=True)
print(response)
# Output:
# 1961λ
4μ 12μΌ, μ΅μ΄μ μΈκ°μ΄ μ°μ£Όλ‘ λκ° μ§κ΅¬λ₯Ό 곡μ νμ΅λλ€.
vllm>=v0.6.4.post1 or the latest version is required to use tool-use functionpip install vllm>=v0.6.4.post1
# if you don't want to activate tool-use function, just commenting out below vLLM option
VLLM_OPTION="--enable-auto-tool-choice --tool-call-parser hermes"
vllm serve skt/A.X-4.0-Light $VLLM_OPTION
from openai import OpenAI
def call(messages, model):
completion = client.chat.completions.create(
model=model,
messages=messages,
)
print(completion.choices[0].message)
client = OpenAI(
base_url="http://localhost:8000/v1",
api_key="api_key"
)
model = "skt/A.X-4.0-Light"
messages = [{"role": "user", "content": "μμ΄μ»¨ μ¬λ¦μ² μ μ μ¨λλ? νμ€λ‘ λ΅λ³ν΄μ€"}]
call(messages, model)
# Output:
# ChatCompletionMessage(content='μ¬λ¦μ² μ μ μμ΄μ»¨ μ¨λλ μΌλ°μ μΌλ‘ 24-26λμ
λλ€.', refusal=None, role='assistant', audio=None, function_call=None, tool_calls=[], reasoning_content=None)
messages = [{"role": "user", "content": "What is the appropriate temperature for air conditioning in summer? Response in a single sentence."}]
call(messages, model)
# Output:
# 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)
from openai import OpenAI
def call(messages, model):
completion = client.chat.completions.create(
model=model,
messages=messages,
tools=tools
)
print(completion.choices[0].message)
client = OpenAI(
base_url="http://localhost:8000/v1",
api_key="api_key"
)
model = "skt/A.X-4.0-Light"
calculate_discount = {
"type": "function",
"function": {
"name": "calculate_discount",
"description": "μκ°κ²©κ³Ό ν μΈμ¨(νΌμΌνΈ λ¨μ)μ μ
λ ₯λ°μ ν μΈλ κ°κ²©μκ³μ°νλ€.",
"parameters": {
"type": "object",
"properties": {
"original_price": {
"type": "number",
"description": "μνμ μλ κ°κ²©"
},
"discount_percentage": {
"type": "number",
"description": "μ μ©ν ν μΈμ¨(μ: 20% ν μΈμ κ²½μ° 20μ μ
λ ₯)"
}
},
"required": ["original_price", "discount_percentage"]
}
}
}
get_exchange_rate = {
"type": "function",
"function": {
"name": "get_exchange_rate",
"description": "λ ν΅ν κ°μ νμ¨μ κ°μ Έμ¨λ€.",
"parameters": {
"type": "object",
"properties": {
"base_currency": {
"type": "string",
"description": "The currency to convert from."
},
"target_currency": {
"type": "string",
"description": "The currency to convert to."
}
},
"required": ["base_currency", "target_currency"]
}
}
}
tools = [calculate_discount, get_exchange_rate]
### Slot filling ###
messages = [{"role": "user", "content": "μ°λ¦¬κ° λ μ¬μΌλλλ° μλ 57600μμΈλ° μ§μν μΈ λ°μ μ μκ±°λ ? ν μΈκ°μ’ κ³μ°ν΄μ€"}]
call(messages, model)
# Output:
# ChatCompletionMessage(content='ν μΈμ¨μ μλ €μ£Όμκ² μ΅λκΉ?', refusal=None, role='assistant', audio=None, function_call=None, tool_calls=[], reasoning_content=None)
### Function calling ###
messages = [
{"role": "user", "content": "μ°λ¦¬κ° λ μ¬μΌλλλ° μλ 57600μμΈλ° μ§μν μΈ λ°μ μ μκ±°λ ? ν μΈκ°μ’ κ³μ°ν΄μ€"},
{"role": "assistant", "content": "ν μΈμ¨μ μλ €μ£Όμκ² μ΅λκΉ?"},
{"role": "user", "content": "15% ν μΈ λ°μ μ μμ΄."},
]
call(messages, model)
# Output:
# 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)
### Completion ###
messages = [
{"role": "user", "content": "μ°λ¦¬κ° λ μ¬μΌλλλ° μλ 57600μμΈλ° μ§μν μΈ λ°μ μ μκ±°λ ? ν μΈκ°μ’ κ³μ°ν΄μ€"},
{"role": "assistant", "content": "ν μΈμ¨μ μλ €μ£Όμκ² μ΅λκΉ?"},
{"role": "user", "content": "15% ν μΈ λ°μ μ μμ΄."},
{"role": "tool", "tool_call_id": "random_id", "name": "calculate_discount", "content": "{\"original_price\": 57600, \"discount_percentage\": 15, \"discounted_price\": 48960.0}"}
]
call(messages, model)
# Output:
# ChatCompletionMessage(content='57600μμ μνμμ 15% ν μΈμ μ μ©νλ©΄, ν μΈλ κ°κ²©μ 48960μμ
λλ€.', refusal=None, role='assistant', audio=None, function_call=None, tool_calls=[], reasoning_content=None)
The 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}
}