joschu0 commited on
Commit
1592e94
·
verified ·
1 Parent(s): fb9e6a2

Upload LoRA adapter trained with Tinker

Browse files

Base model: meta-llama/Llama-3.1-8B
Tinker checkpoint: tinker://7f4705e7-551f-5133-b4bb-33444c0c405b:train:0/sampler_weights/test-push-to-hub
Uploaded: 2025-12-28T22:17:23.954862

Files changed (3) hide show
  1. README.md +63 -0
  2. adapter_config.json +31 -0
  3. adapter_model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ base_model: meta-llama/Llama-3.1-8B
4
+ tags:
5
+ - tinker
6
+ - lora
7
+ - sl
8
+ license: llama3.1
9
+ ---
10
+
11
+ # joschu0/tinker-llama-lora-test
12
+
13
+ This model is a [LoRA adapter](https://huggingface.co/docs/peft/main/en/conceptual_guides/lora) fine-tuned with **[Tinker](https://thinkingmachines.ai/tinker)** from [Thinking Machines Lab](https://thinkingmachines.ai).
14
+
15
+ ## Model Details
16
+
17
+ | Attribute | Value |
18
+ |-----------|-------|
19
+ | **Base Model** | [meta-llama/Llama-3.1-8B](https://huggingface.co/meta-llama/Llama-3.1-8B) |
20
+ | **Training Type** | Supervised Learning (SFT) |
21
+ | **LoRA Rank** | 8 |
22
+ | **LoRA Alpha** | 32 |
23
+ | **Target Modules** | all-linear |
24
+
25
+
26
+ ## Usage
27
+
28
+ ### With PEFT
29
+
30
+ ```python
31
+ from peft import PeftModel
32
+ from transformers import AutoModelForCausalLM, AutoTokenizer
33
+
34
+ # Load base model
35
+ base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.1-8B")
36
+ tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.1-8B")
37
+
38
+ # Load LoRA adapter
39
+ model = PeftModel.from_pretrained(base_model, "joschu0/tinker-llama-lora-test")
40
+ ```
41
+
42
+ ### With Tinker (for continued training)
43
+
44
+ ```python
45
+ import tinker
46
+
47
+ sc = tinker.ServiceClient()
48
+ # Note: The checkpoint must be published on Tinker for this to work
49
+ training_client = sc.create_training_client_from_state("tinker://7f4705e7-551f-5133-b4bb-33444c0c405b:train:0/sampler_weights/test-push-to-hub")
50
+ ```
51
+
52
+ ## Training
53
+
54
+ This model was trained using the Tinker API. For more information about training
55
+ with Tinker, see the [Tinker documentation](https://tinker-docs.thinkingmachines.ai/).
56
+
57
+
58
+
59
+ ---
60
+
61
+ <p align="center">
62
+ <em>Trained with <a href="https://thinkingmachines.ai/tinker">Tinker</a> by Thinking Machines Lab</em>
63
+ </p>
adapter_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "meta-llama/Llama-3.1-8B",
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": false,
10
+ "inference_mode": false,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 32,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "r": 8,
24
+ "rank_pattern": {},
25
+ "revision": null,
26
+ "target_modules": "all-linear",
27
+ "task_type": "CAUSAL_LM",
28
+ "trainable_token_indices": null,
29
+ "use_dora": false,
30
+ "use_rslora": false
31
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1923e11fb303df690183ecba2fb2665e6d22905649abb5023532484a7952a27f
3
+ size 88180792