piyazon / uyghur_translate_dev3

huggingface.co
Total runs: 18
24-hour runs: 0
7-day runs: 0
30-day runs: 12
Model's Last Updated: January 20 2026
translation

Introduction of uyghur_translate_dev3

Model Details of uyghur_translate_dev3

Usage

import torch
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
import logging

logging.getLogger("transformers.tokenization_utils_base").setLevel(logging.ERROR)

model_name = f"piyazon/uyghur_translate_dev3"
src_lang = "eng_Latn"
tgt_lang = "uig_Arab"

# Priority: CUDA > MPS > CPU
if torch.cuda.is_available():
    device = torch.device("cuda")
elif torch.backends.mps.is_available():
    device = torch.device("mps")
else:
    device = torch.device("cpu")

print(f"Using device: cuda")

tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name).to(device)

tokenizer.src_lang = src_lang

text = "Let's answer a question: What is the radius of the Earth? The Earth's average radius is approximately 6371 kilometers, which is the average value of the distance from the equator to the poles."


# 1. PRE-PROCESSING (Crucial Step)
inputs = tokenizer(
    text, 
    return_tensors="pt", 
    padding=True, 
    truncation=True, 
).to(device)

# 2. PREPARE TARGET TOKEN
forced_bos_token_id = tokenizer.convert_tokens_to_ids(tgt_lang)

# 3. GENERATION
with torch.no_grad():
    out = model.generate(
        **inputs,
        forced_bos_token_id=forced_bos_token_id,
        max_new_tokens=128,
        num_beams=4, 
        no_repeat_ngram_size=3 
    )

# 4. DECODE
# Clean up the output
translation = tokenizer.batch_decode(out, skip_special_tokens=True)[0]

print(translation)

Runs of piyazon uyghur_translate_dev3 on huggingface.co

18
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
12
30-day runs

More Information About uyghur_translate_dev3 huggingface.co Model

uyghur_translate_dev3 huggingface.co

uyghur_translate_dev3 huggingface.co is an AI model on huggingface.co that provides uyghur_translate_dev3's model effect (), which can be used instantly with this piyazon uyghur_translate_dev3 model. huggingface.co supports a free trial of the uyghur_translate_dev3 model, and also provides paid use of the uyghur_translate_dev3. Support call uyghur_translate_dev3 model through api, including Node.js, Python, http.

uyghur_translate_dev3 huggingface.co Url

https://huggingface.co/piyazon/uyghur_translate_dev3

piyazon uyghur_translate_dev3 online free

uyghur_translate_dev3 huggingface.co is an online trial and call api platform, which integrates uyghur_translate_dev3's modeling effects, including api services, and provides a free online trial of uyghur_translate_dev3, you can try uyghur_translate_dev3 online for free by clicking the link below.

piyazon uyghur_translate_dev3 online free url in huggingface.co:

https://huggingface.co/piyazon/uyghur_translate_dev3

uyghur_translate_dev3 install

uyghur_translate_dev3 is an open source model from GitHub that offers a free installation service, and any user can find uyghur_translate_dev3 on GitHub to install. At the same time, huggingface.co provides the effect of uyghur_translate_dev3 install, users can directly use uyghur_translate_dev3 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

uyghur_translate_dev3 install url in huggingface.co:

https://huggingface.co/piyazon/uyghur_translate_dev3

Url of uyghur_translate_dev3

uyghur_translate_dev3 huggingface.co Url

Provider of uyghur_translate_dev3 huggingface.co

piyazon
ORGANIZATIONS

Other API from piyazon

huggingface.co

Total runs: 62
Run Growth: 19
Growth Rate: 30.65%
Updated:September 29 2025
huggingface.co

Total runs: 51
Run Growth: -14
Growth Rate: -27.45%
Updated:September 30 2025
huggingface.co

Total runs: 21
Run Growth: 21
Growth Rate: 100.00%
Updated:September 23 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 25 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 13 2025