Downloads · 30 days
20
24% of all-time downloads
ruhil6789/solana-llama-3.2-3b-lora
solana-llama-3.2-3b-lora is a text generation model from ruhil6789. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as llama3.2.
This repository contains a LoRA fine-tuned version of Meta Llama-3.2-3B specialized for the Solana blockchain ecosystem.
Downloads · 30 days
20
24% of all-time downloads
All-time downloads
82
Public
Repo size
35.6 MB
Likes
0
Public
Click a slice to open those files.
.safetensors18.4 MB · 52%
From the Hugging Face model README
This repository contains a LoRA fine-tuned version of Meta Llama-3.2-3B specialized for the Solana blockchain ecosystem.
The model was instruction-tuned to answer questions related to Solana development, smart contracts, Anchor framework, SPL Tokens, Program Derived Addresses (PDAs), Cross Program Invocation (CPI), accounts, transactions, and other Solana concepts.
The model was fine-tuned on a custom Solana instruction dataset consisting of:
This model was trained using:
| Parameter | Value |
|---|---|
| Base Model | meta-llama/Llama-3.2-3B |
| Fine-tuning Method | LoRA |
| Trainer | TRL SFTTrainer |
| Epochs | 1 |
| Learning Rate | 2e-4 |
| Per Device Train Batch Size | 1 |
| Gradient Accumulation Steps | 8 |
| Effective Batch Size | 8 |
| Max Sequence Length | 512 |
| Optimizer | paged_adamw_8bit |
| Warmup Steps | 100 |
| Gradient Checkpointing | Enabled |
| Packing | Enabled |
| Mixed Precision | BF16 |
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
BASE_MODEL = "meta-llama/Llama-3.2-3B"
tokenizer = AutoTokenizer.from_pretrained(BASE_MODEL)
base_model = AutoModelForCausalLM.from_pretrained(BASE_MODEL)
model = PeftModel.from_pretrained(
base_model,
"ruhil6789/solana-llama-3.2-3b-lora"
)
prompt = "Explain Program Derived Addresses (PDAs) in Solana."
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This model is intended for:
This LoRA adapter follows the Meta Llama-3.2 license.
Sachin Ruhil
Hugging Face: https://huggingface.co/ruhil6789