alakxender / flan-t5-base-alpaca-dv-ext

huggingface.co
Total runs: 32
24-hour runs: -1
7-day runs: -1
30-day runs: 25
Model's Last Updated: August 01 2025

Introduction of flan-t5-base-alpaca-dv-ext

Model Details of flan-t5-base-alpaca-dv-ext

Alpaca Dhivehi Fine-Tuned Flan-T5 with an Extended Tokenizer

This repository contains a fine-tuned Flan-T5 model on the Alpaca Dhivehi dataset , aimed at enabling Dhivehi language instruction-following tasks.

Note: The model can follow instructions and inputs to some extent, but it’s not strictly trained for perfect adherence. Outputs may be partially aligned but are not guaranteed to be fully accurate. Treat results as experimental.

Model Details
  • Base model : google/flan-t5-small (or whichever size you used)
  • Dataset : Alpaca Dhivehi , Translation from English to Dhivehi
  • Training epochs : 5
  • Final evaluation :
    • eval_loss : 2.59
    • ROUGE-1 : 0.10
    • ROUGE-2 : 0.03
    • ROUGE-L : 0.107
Usage

To run inference using the fine-tuned model:

import torch
from transformers import T5Tokenizer, T5ForConditionalGeneration

MODEL_PATH = "alakxender/flan-t5-base-alpaca-dv5"

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

tokenizer = T5Tokenizer.from_pretrained(MODEL_PATH)
model = T5ForConditionalGeneration.from_pretrained(MODEL_PATH).to(device)

def generate_response(instruction, input_text):
    combined_input = f"{instruction.strip()} {input_text.strip()}" if input_text else instruction.strip()
    inputs = tokenizer(combined_input, return_tensors="pt", truncation=True, max_length=256).to(device)
    
    output_ids = model.generate(
        **inputs,
        max_new_tokens=256,
        num_beams=8,
        repetition_penalty=1.5,
        no_repeat_ngram_size=3,
        do_sample=True,
        early_stopping=True,
        temperature=0.1
    )
    
    decoded_output = tokenizer.decode(output_ids[0], skip_special_tokens=True)
    return decoded_output

# Example usage:
instruction = "ދީފައިވާ މައުޟޫޢާ ބެހޭގޮތުން ކުރު ޕެރެގްރާފެއް ލިޔެލާށެވެ."
input_text = "އިއާދަކުރަނިވި ހަކަތަ ބޭނުންކުރުމުގެ މުހިންމުކަން"
print(generate_response(instruction, input_text))

އިއާދަކުރަނިވި ހަކަތަ ބޭނުންކުރުމުގެ މުހިންމު އެއް މައުޟޫއަކީ ސޯލާ، ވިންޑް، ހައިޑްރޯ، ޖިއޮތަރމަލް، އަދި ހައިޑްރޯއިލެކްޓްރިކް ޕަވަރ ފަދަ އިއާދަކުރަނިވި ހަކަތައިން ގްރީންހައުސް ގޭސްތައް ބޭރުވުން .....
Evaluation Results

From the last evaluation:

{
'eval_loss': 1.947984218597412,
'eval_rouge1': 0.19402897739527525,
'eval_rouge2': 0.13442865174751445,
'eval_rougeL': 0.19137712018920253,
'eval_rougeLsum': 0.192215538761906,
'eval_runtime': 46947.7862,
'eval_samples_per_second': 0.11,
'eval_steps_per_second': 0.11,
'epoch': 10.0
}
Notes
  • This fine-tuned model is experimental and intended for research on Dhivehi-language instruction-following tasks.

Runs of alakxender flan-t5-base-alpaca-dv-ext on huggingface.co

32
Total runs
-1
24-hour runs
0
3-day runs
-1
7-day runs
25
30-day runs

More Information About flan-t5-base-alpaca-dv-ext huggingface.co Model

More flan-t5-base-alpaca-dv-ext license Visit here:

https://choosealicense.com/licenses/mit

flan-t5-base-alpaca-dv-ext huggingface.co

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

flan-t5-base-alpaca-dv-ext huggingface.co Url

https://huggingface.co/alakxender/flan-t5-base-alpaca-dv-ext

alakxender flan-t5-base-alpaca-dv-ext online free

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

alakxender flan-t5-base-alpaca-dv-ext online free url in huggingface.co:

https://huggingface.co/alakxender/flan-t5-base-alpaca-dv-ext

flan-t5-base-alpaca-dv-ext install

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

flan-t5-base-alpaca-dv-ext install url in huggingface.co:

https://huggingface.co/alakxender/flan-t5-base-alpaca-dv-ext

Url of flan-t5-base-alpaca-dv-ext

flan-t5-base-alpaca-dv-ext huggingface.co Url

Provider of flan-t5-base-alpaca-dv-ext huggingface.co

alakxender
ORGANIZATIONS

Other API from alakxender

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 16 2024