Downloads · 30 days
82
2% of all-time downloads
Thimira/sinhala-llama-2-7b-chat-hf
sinhala-llama-2-7b-chat-hf is a text generation model from Thimira. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as llama2.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
82
2% of all-time downloads
All-time downloads
4.9K
Public
Repo size
212 GB
Likes
3
Public
Click a slice to open those files.
.bin13.5 GB · 99%
From the Hugging Face model README
This model is a fine-tuned version of NousResearch/Llama-2-7b-chat-hf on the Thimira/sinhala-llm-dataset-llama-prompt-format dataset.
This is a model for Sinhala language text generation which is fine-tuned from the base llama-2-7b-chat-hf model.
Currently the capabilities of themodel are extremely limited, and requires further data and fine-tuning to be useful. Feel free to experiment with the model and provide feedback.
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
tokenizer = AutoTokenizer.from_pretrained("Thimira/sinhala-llama-2-7b-chat-hf")
model = AutoModelForCausalLM.from_pretrained("Thimira/sinhala-llama-2-7b-chat-hf")
pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer, max_length=200)
prompt = "ඔබට සිංහල භාෂාව තේරුම් ගත හැකිද?"
result = pipe(f"<s>[INST] {prompt} [/INST]")
print(result[0]['generated_text'])
The Sinhala-LLaMA models are intended for assistant-like chat in the Sinhala language.
To get the expected features and performance from these models the LLaMA 2 prompt format needs to be followed, including the INST and <<SYS>> tags, BOS and EOS tokens, and the whitespaces and breaklines in between.
More information needed
The following hyperparameters were used during training: