Downloads · 30 days
34
29% of all-time downloads
damerajee/codellama2-finetuned-alpaca-18k-fin
codellama2-finetuned-alpaca-18k-fin is a text generation model from damerajee. 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 a fine-tuned version of codellama/CodeLlama-7b-hf on the iamtarun/pythoncodeinstructions18kalpaca dataset.
Downloads · 30 days
34
29% of all-time downloads
All-time downloads
116
Public
Parameters
6.7B
13.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors13.5 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of codellama/CodeLlama-7b-hf on the iamtarun/python_code_instructions_18k_alpaca dataset.
More information needed
More information needed
from transformers import AutoTokenizer
from transformers import pipeline
import torch
tokenizer = AutoTokenizer.from_pretrained("damerajee/codellama2-finetuned-alpaca-18k-fin")
pipe = pipeline(
"text-generation",
model="damerajee/codellama2-finetuned-alpaca-18k-fin",
torch_dtype=torch.float16,
device_map="auto",
)
text = "write a function that takes in print out each individual characters in a string"
sequences = pipe(
text,
do_sample=True,
temperature=0.1,
top_p=0.7,
num_return_sequences=1,
eos_token_id=tokenizer.eos_token_id,
max_length=70,
)
for seq in sequences:
print(f"Result: {seq['generated_text']}")
| Step | Training Loss |
|---|---|
| 10 | 0.792200 |
| 20 | 0.416100 |
| 30 | 0.348600 |
| 40 | 0.323200 |
| 50 | 0.316300 |
| 60 | 0.317500 |
| 70 | 0.333600 |
| 80 | 0.329500 |
| 90 | 0.333400 |
| 100 | 0.309900 |
The following hyperparameters were used during training: