Downloads · 30 days
7
11% of all-time downloads
atsuki-yamaguchi/Llama-2-7b-hf-th-30K-focus
Llama-2-7b-hf-th-30K-focus is a text generation model from atsuki-yamaguchi. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama2.
This model is built on top of Llama2 7B adapted for Thai using 30K target language sentences sampled from CC-100.
Downloads · 30 days
7
11% of all-time downloads
All-time downloads
61
Public
Parameters
6.7B
29.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors29.1 GB · 100%
How the weights are stored.
F326.5B · 96%
From the Hugging Face model README
This model is built on top of Llama2 7B adapted for Thai using 30K target language sentences sampled from CC-100.
Use the code below to get started with the model.
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModelForCausalLM
model = AutoModelForCausalLM.from_pretrained(
"atsuki-yamaguchi/Llama-2-7b-hf-th-30K-focus"
)
model = PeftModelForCausalLM.from_pretrained(
model,
"atsuki-yamaguchi/Llama-2-7b-hf-th-30K-focus"
)
model = model.merge_and_unload()
tokenizer = AutoTokenizer.from_pretrained(
"atsuki-yamaguchi/Llama-2-7b-hf-th-30K-focus"
)
@article{yamaguchi-etal-2024-effectively,
title={How Can We Effectively Expand the Vocabulary of LLMs with 0.01GB of Target Language Text?},
author={Atsuki Yamaguchi and Aline Villavicencio and Nikolaos Aletras},
year={2024},
journal={ArXiv},
year={2024},
volume={abs/2406.11477},
url={https://arxiv.org/abs/2406.11477},
}