Downloads · 30 days
12
9% of all-time downloads
KoreaTradeNetwork/Qwen-4B-HS4-DPO
Qwen-4B-HS4-DPO is a text generation model from KoreaTradeNetwork. 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.
이 모델은 품명(Item Description)으로부터 관세 품목 분류 번호(HS Code)를 정확하게 추론하기 위해 Qwen3-4B 모델을 DPO(Direct Preference Optimization) 방식으로 미세 조정(Fine-tuning)한 데모 모델입니다. 해당 모델은 데모용으로 개발되었으며, 소량의 데이터를 사용하여 학습하여 결과가 다소 부정확할수 있습니다.
Downloads · 30 days
12
9% of all-time downloads
All-time downloads
139
Public
Parameters
4.1B
3.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors3.4 GB · 100%
How the weights are stored.
U83.7B · 91%
From the Hugging Face model README
이 모델은 **품명(Item Description)으로부터 관세 품목 분류 번호(HS Code)**를 정확하게 추론하기 위해 Qwen3-4B 모델을 DPO(Direct Preference Optimization) 방식으로 미세 조정(Fine-tuning)한 데모 모델입니다. 해당 모델은 데모용으로 개발되었으며, 소량의 데이터를 사용하여 학습하여 결과가 다소 부정확할수 있습니다.
Qwen/Qwen3-4B수출입 통관 데이터의 품명(Text) 정보와 실제 할당된 HS Code 쌍을 활용하였습니다.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "KoreaTradeNetwork/Qwen3-4B-HS4-DPO"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
prompt = "품명: 'Organic Green Tea Bag'\n이 상품의 HS 코드는?"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))