Downloads · 30 days
40
11% of all-time downloads
leesm/llama-2-7b-hf-lora-oki100p
llama-2-7b-hf-lora-oki100p is a text generation model from leesm. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
- Base Model : meta-llama/Llama-2-7b-hf - Dataset : heegyu/open-korean-instructions (100%) - Tuning Method - PEFT(Parameter Efficient Fine-Tuning) - LoRA(Low-Rank Adaptation of Large Language Models) - Related Article…
Downloads · 30 days
40
11% of all-time downloads
All-time downloads
376
Public
Parameters
6.7B
13.5 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors13.5 GB · 100%
From the Hugging Face model README
peft_config = LoraConfig(
lora_alpha=16,
lora_dropout=0.1,
r=64,
bias='none',
task_type='CAUSAL_LM'
)
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=True,
bnb_4bit_quant_type='nf4',
bnb_4bit_compute_dtype='float16',
)
trainer = SFTTrainer(
model=peft_model,
train_dataset=dataset,
dataset_text_field='text',
max_seq_length=min(tokenizer.model_max_length, 2048),
tokenizer=tokenizer,
packing=True,
args=training_args
)
time taken : executed in 2d 0h 17m
TrainOutput(global_step=2001,
training_loss=0.6940358212922347,
metrics={
'train_runtime': 173852.2333,
'train_samples_per_second': 0.092,
'train_steps_per_second': 0.012,
'train_loss': 0.6940358212922347,
'epoch': 3.0})