tgaddair commited on
Commit
488e290
1 Parent(s): 409512a

Upload 3 files

Browse files
Files changed (3) hide show
  1. README.md +71 -1
  2. adapter_config.json +26 -0
  3. adapter_model.safetensors +3 -0
README.md CHANGED
@@ -1,3 +1,73 @@
1
  ---
2
- license: apache-2.0
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ library_name: peft
3
+ base_model: mistralai/Mistral-7B-v0.1
4
  ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ Trained with [Ludwig.ai](https://ludwig.ai) and [Prdibase](https://predibase.com)!
9
+
10
+ Given a passage from a news report generates a headline.
11
+
12
+ Trained on: https://huggingface.co/datasets/JulesBelveze/tldr_news
13
+
14
+
15
+
16
+ ## Model Details
17
+
18
+ ### Model Description
19
+
20
+ Ludwig config (v0.9.3):
21
+
22
+ ```yaml
23
+ model_type: llm
24
+ input_features:
25
+ - name: prompt
26
+ type: text
27
+ preprocessing:
28
+ max_sequence_length: null
29
+ column: prompt
30
+ output_features:
31
+ - name: headline
32
+ type: text
33
+ preprocessing:
34
+ max_sequence_length: null
35
+ column: headline
36
+ prompt:
37
+ template: >-
38
+ The following passage is content from a news report. Please summarize this
39
+ passage in one sentence or less.
40
+
41
+
42
+ Passage: {content}
43
+
44
+
45
+ Summary:
46
+ preprocessing:
47
+ split:
48
+ type: fixed
49
+ column: split
50
+ global_max_sequence_length: 2048
51
+ adapter:
52
+ type: lora
53
+ generation:
54
+ max_new_tokens: 64
55
+ trainer:
56
+ type: finetune
57
+ epochs: 3
58
+ optimizer:
59
+ type: paged_adam
60
+ batch_size: 1
61
+ eval_steps: 100
62
+ learning_rate: 0.0002
63
+ eval_batch_size: 2
64
+ steps_per_checkpoint: 1000
65
+ learning_rate_scheduler:
66
+ decay: cosine
67
+ warmup_fraction: 0.03
68
+ gradient_accumulation_steps: 16
69
+ enable_gradient_checkpointing: true
70
+ base_model: mistralai/Mistral-7B-v0.1
71
+ quantization:
72
+ bits: 4
73
+ ```
adapter_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-v0.1",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "loftq_config": {},
12
+ "lora_alpha": 16,
13
+ "lora_dropout": 0.05,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": null,
17
+ "peft_type": "LORA",
18
+ "r": 8,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "q_proj",
23
+ "v_proj"
24
+ ],
25
+ "task_type": "CAUSAL_LM"
26
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1bb49c6636b54f10d6c7676dbb8ec96897cf6c283d49a17f5ea89585c248972
3
+ size 13648432