Run this model with HF Jobs

Run Etherll/Tashkeel-350M-v2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/Etherll/Tashkeel-350M-v2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Etherll/Tashkeel-350M-v2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Etherll/Tashkeel-350M-v2. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/Etherll/Tashkeel-350M-v2. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Tashkeel-350M

Arabic Diacritization Model | ู†ูŽู…ููˆุฐูŽุฌู ุชูŽุดู’ูƒููŠู„ู ุงู„ู†ู‘ูุตููˆุตู ุงู„ู’ุนูŽุฑูŽุจููŠู‘ูŽุฉู

ู†ู…ูˆุฐุฌ ุจุญุฌู… 350 ู…ู„ูŠูˆู† ุจุงุฑุงู…ุชุฑ ู…ุฎุตุต ู„ุชุดูƒูŠู„ ุงู„ู†ุตูˆุต ุงู„ุนุฑุจูŠุฉ. ุชู… ุชุฏุฑูŠุจ ู‡ุฐุง ุงู„ู†ู…ูˆุฐุฌ ุจุถุจุท ู†ู…ูˆุฐุฌ

ibm-granite/granite-4.0-h-350m

ุนู„ู‰ ู…ุฌู…ูˆุนุฉ ุงู„ุจูŠุงู†ุงุช

Misraj/Sadeed_Tashkeela.

ูƒูŠููŠุฉ ุงู„ุงุณุชุฎุฏุงู…

from transformers import AutoModelForCausalLM, AutoTokenizer

#ุชุญู…ูŠู„ ุงู„ู†ู…ูˆุฐุฌ
model_id = "Etherll/Tashkeel-350M-v2"
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    device_map="auto",
    torch_dtype="bfloat16",
)
tokenizer = AutoTokenizer.from_pretrained(model_id)

# ุฅุถุงูุฉ ุงู„ุชุดูƒูŠู„
prompt = "ุงู„ุณู„ุงู… ุนู„ูŠูƒู…" 
input_ids = tokenizer.apply_chat_template(
    [{"role": "user", "content": "ู‚ู… ุจุชุดูƒูŠู„ ู‡ุฐุง ุงู„ู†ุต "+ ":\n"+prompt}],
    add_generation_prompt=True,
    return_tensors="pt",
    tokenize=True,
).to(model.device)

output = model.generate(
    input_ids,
    do_sample=False,  
)

print(tokenizer.decode(output[0, input_ids.shape[-1]:], skip_special_tokens=True))

ู…ุซุงู„

  • ุงู„ู†ุต ุงู„ู…ุฏุฎู„: ุงู„ุณู„ุงู… ุนู„ูŠูƒู…
  • ุงู„ู†ุงุชุฌ: ุงูŽู„ุณูŽู„ูŽุงู…ู ุนูŽู„ูŽูŠู’ูƒูู…ู’


Tashkeel-350M-v2 (English)

A 350M parameter model for Arabic diacritization (Tashkeel). This model is a fine-tune of ibm-granite/granite-4.0-h-350m on the Misraj/Sadeed_Tashkeela dataset.

How to Use

The Python code for usage is the same as listed in the Arabic section above.

Example

  • Input: ุงู„ุณู„ุงู… ุนู„ูŠูƒู…
  • Output: ุงูŽู„ุณูŽู„ูŽุงู…ู ุนูŽู„ูŽูŠู’ูƒูู…ู’

This lfm2 model was trained 2x faster with Unsloth and Huggingface's TRL library.

Downloads last month
106
Safetensors
Model size
0.3B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Etherll/Tashkeel-350M-v2

Finetuned
(17)
this model
Quantizations
2 models

Dataset used to train Etherll/Tashkeel-350M-v2