Downloads · 30 days
15
5% of all-time downloads
1TuanPham/T-Llama-v1.1
T-Llama-v1.1 is a text generation model from 1TuanPham. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
- Developed by: Tuan Pham (FPTU HCM Student) - Model type: Llama2-7B Decoder-only - Finetuned from model : meta-llama/Llama-2-7b bkai-foundation-models/vietnamese-llama2-7b-120GB yeen214/llama27bmergeorcafamily. - Bil…
Downloads · 30 days
15
5% of all-time downloads
All-time downloads
307
Public
Repo size
27.4 GB
Likes
1
Public
Click a slice to open those files.
.bin13.7 GB · 100%
From the Hugging Face model README
[SYSTEM_PROMPT]
####### Instruction:
[INPUT]
%%%%%%% Response:
[RESPONSE]
Use the code below to get started with the model.
from torch.cuda.amp import autocast
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer, pipeline
model_name = "1TuanPham/T-Llama-v1.1"
model = AutoModelForCausalLM.from_pretrained(model_name,
torch_dtype=torch.bfloat16,
use_cache=True,
)
tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=True)
streamer = TextStreamer(tokenizer, skip_special_tokens=True)
pipe = pipeline("text-generation", model=base_model, tokenizer=tokenizer, streamer=streamer)
with autocast():
output_default = pipe("Phạm Nhật Vượng là ", pad_token_id=50256, max_new_tokens=128)
Hardware Type:
Hours used: ~42.5 Approx*
Learning rate: 2e-5 cosine
Optimizer: PagedLion8bit
QLora: rank: 64 /Q: 4-bit

[More Information Needed]
[More Information Needed]
[More Information Needed]