alakxender / dhivehi-gpt2-base

huggingface.co
Total runs: 17
24-hour runs: 0
7-day runs: 0
30-day runs: 6
Model's Last Updated: December 14 2024

Introduction of dhivehi-gpt2-base

Model Details of dhivehi-gpt2-base

GPT 2 DV base

This is a GPT-2 model fine-tuned on Dhivehi language texts. The model was trained on a curated dataset of Dhivehi Wikipedia articles and can be used for text generation in the Dhivehi language.

Model Description
  • Model Type: GPT-2
  • Language: Dhivehi (ދިވެހި)
  • Training Data: Dhivehi Wikipedia articles
  • Last Updated: 2024-11-25
Performance Metrics

Evaluation metrics on the test set:

  • Average Perplexity: 3.80
  • Perplexity Std: 2.23
  • Best Perplexity: 2.72
Usage Example
from transformers import GPT2LMHeadModel, GPT2TokenizerFast

# Load model and tokenizer
model = GPT2LMHeadModel.from_pretrained("your-username/dhivehi-gpt2")
tokenizer = GPT2TokenizerFast.from_pretrained("your-username/dhivehi-gpt2")

# Prepare your prompt
prompt = "ދިވެހިރާއްޖެއަކީ"
inputs = tokenizer(prompt, return_tensors="pt")

# Generate text
outputs = model.generate(
    **inputs,
    max_length=200,
    temperature=0.7,
    top_p=0.9,
    do_sample=True,
    num_return_sequences=1
)

# Decode the generated text
generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(generated_text)
Training Details

The model was trained using the following configuration:

  • Base model: GPT-2
  • Training type: Full fine-tuning
  • Mixed precision: FP16
  • Gradient checkpointing: Enabled
Hyperparameters:
  • Learning rate: 5e-5
  • Batch size: 32
  • Gradient accumulation steps: 2
  • Epochs: 3
  • Weight decay: 0.01
  • Warmup steps: 1000
Limitations
  • Primary training data is from Wikipedia, which may not cover all Dhivehi language contexts
  • May not perform well on specialized or technical content
  • Could reflect biases present in the training data
  • Not recommended for production use without thorough evaluation
Intended Uses

This model is suitable for:

  • Dhivehi text generation
  • Research on Dhivehi NLP
  • Educational purposes
  • Experimental applications

Not intended for:

  • Critical or production systems
  • Decision-making applications
  • Tasks requiring factual accuracy

Runs of alakxender dhivehi-gpt2-base on huggingface.co

17
Total runs
0
24-hour runs
4
3-day runs
0
7-day runs
6
30-day runs

More Information About dhivehi-gpt2-base huggingface.co Model

dhivehi-gpt2-base huggingface.co

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

dhivehi-gpt2-base huggingface.co Url

https://huggingface.co/alakxender/dhivehi-gpt2-base

alakxender dhivehi-gpt2-base online free

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

alakxender dhivehi-gpt2-base online free url in huggingface.co:

https://huggingface.co/alakxender/dhivehi-gpt2-base

dhivehi-gpt2-base install

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

dhivehi-gpt2-base install url in huggingface.co:

https://huggingface.co/alakxender/dhivehi-gpt2-base

Url of dhivehi-gpt2-base

dhivehi-gpt2-base huggingface.co Url

Provider of dhivehi-gpt2-base huggingface.co

alakxender
ORGANIZATIONS

Other API from alakxender

huggingface.co

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