Downloads · 30 days
12
46% of all-time downloads
Inkersion/llama-3.1-8b-alpaca-custom
llama-3.1-8b-alpaca-custom is a machine learning model from Inkersion. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This model is a fine-tuned version of unsloth/Meta-Llama-3.1-8B-bnb-4bit on the Alpaca dataset.
Downloads · 30 days
12
46% of all-time downloads
All-time downloads
26
Public
Parameters
8B
16.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.4 GB · 99%
From the Hugging Face model README
This model is a fine-tuned version of unsloth/Meta-Llama-3.1-8B-bnb-4bit on the Alpaca dataset.
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
{instruction}
### Response:
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"Inkersion/llama-3.1-8b-alpaca-custom",
device_map="auto",
load_in_4bit=True
)
tokenizer = AutoTokenizer.from_pretrained("Inkersion/llama-3.1-8b-alpaca-custom")
prompt = """Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Explain what machine learning is in one sentence.
### Response:
"""
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_length=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Trained using Unsloth for optimized fine-tuning.