CoolFace
Modelpublic

thundax/Qwen2.5-0.5B-Sign

sourceHugging Facemitupdated 1y agoView on Hugging Face
1likes7downloads
Model Card

Qwen2.5-1.5B-Sign

Introduction

Qwen2.5-Sign is a text-to-chinese-sign model base on Qwen2.5

Finetune Details

ParameterValue
learning_rate5e-05
trainbatchsize4
evalbatchsize4
gradientaccumulationsteps8
totaltrainbatch_size32
lrschedulertypecosine
lrschedulerwarmup_steps100
num_epochs4

Quickstart

python
from transformers import AutoModelForCausalLM, AutoTokenizer

device = "cuda"  # the device to load the model onto

model = AutoModelForCausalLM.from_pretrained(
    "thundax/Qwen2.5-1.5B-Sign",
    torch_dtype="auto",
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("thundax/Qwen2.5-1.5B-Sign")

text = "站一个制高点看上海,上海的弄堂是壮观的景象。它是这城市背景一样的东西。"
input_text = f'Translate sentence into labels\n{text}\n'
model_inputs = tokenizer([input_text], return_tensors="pt").to(device)

generated_ids = model.generate(
    model_inputs.input_ids,
    max_new_tokens=512
)
generated_ids = [
    output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]

response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]

Citation

If you find our work helpful, feel free to give us a cite.

@software{qwen2-sign,
  author = {thundax},
  title = {qwen2-sign: A Tool for Text to Sign},
  year = {2025},
  url = {https://github.com/thundax-lyp},
}