Downloads · 30 days
8
23% of all-time downloads
joschu0/tinker-llama-lora-test
tinker-llama-lora-test is a machine learning model from joschu0. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as llama3.1.
This model is a LoRA adapter fine-tuned with Tinker from Thinking Machines Lab.
Downloads · 30 days
8
23% of all-time downloads
All-time downloads
35
Public
Repo size
88.2 MB
Likes
0
Public
Click a slice to open those files.
.safetensors88.2 MB · 100%
From the Hugging Face model README
This model is a LoRA adapter fine-tuned with Tinker from Thinking Machines Lab.
| Attribute | Value |
|---|---|
| Base Model | meta-llama/Llama-3.1-8B |
| Training Type | Supervised Learning (SFT) |
| LoRA Rank | 8 |
| LoRA Alpha | 32 |
| Target Modules | all-linear |
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load base model
base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.1-8B")
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.1-8B")
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "joschu0/tinker-llama-lora-test")
This checkpoint is also available on Tinker for high-throughput sampling:
import tinker
sc = tinker.ServiceClient()
sampling_client = sc.create_sampling_client("tinker://7f4705e7-551f-5133-b4bb-33444c0c405b:train:0/sampler_weights/test-push-to-hub")
result = sampling_client.sample(...)
Tinker path: tinker://7f4705e7-551f-5133-b4bb-33444c0c405b:train:0/sampler_weights/test-push-to-hub
Note: This is a sampler checkpoint and can only be used for inference, not for continued training.
This model was trained using the Tinker API. For more information about training with Tinker, see the Tinker documentation.