Infernaught commited on
Commit
b00b141
1 Parent(s): 940c3f1

Upload 3 files

Browse files
Files changed (3) hide show
  1. README.md +25 -0
  2. adapter_config.json +27 -0
  3. adapter_model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---\
2
+ library_name: peft\
3
+ Base model: mistralai/Mistral-7B-v0.1\
4
+ pipeline_tag: text-generation\
5
+ ---\
6
+ Description: Sentence completion\
7
+ Original dataset: hellaswag_processed \
8
+ ---\
9
+ Try querying this adapter for free in Lora Land at https://predibase.com/lora-land! \
10
+ The adapter_category is Other and the name is Open-Ended Sentence Completion (hellaswag)\
11
+ ---\
12
+ Sample input: You are provided with an incomplete passage below. Please read the passage and then finish it with an appropriate response. For example:\n\n### Passage: My friend and I think alike. We\n\n### Ending: often finish each other's sentences.\n\nNow please finish the following passage:\n\n### Passage: Numerous people are watching others on a field. Trainers are playing frisbee with their dogs. the dogs\n\n### Ending: \
13
+ ---\
14
+ Sample output: are running around the field.\
15
+ ---\
16
+ Try using this adapter yourself!
17
+ ```
18
+ from transformers import AutoModelForCausalLM, AutoTokenizer
19
+
20
+ model_id = "mistralai/Mistral-7B-v0.1"
21
+ peft_model_id = "predibase/hellaswag_processed"
22
+
23
+ model = AutoModelForCausalLM.from_pretrained(model_id)
24
+ model.load_adapter(peft_model_id)
25
+ ```
adapter_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "use_rslora": false
27
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:057866f802b864c13cb0d79df7e7c0a7728e7972bb1253a4a16c84e25d84bdae
3
+ size 13648432