bofenghuang commited on
Commit
dcc3676
1 Parent(s): 1d68f67

Initial commit

Browse files
.gitignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ checkpoint-*/
2
+
3
+ tmp*
README.md ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: openrail
3
+ language:
4
+ - fr
5
+ pipeline_tag: text-generation
6
+ library_name: transformers
7
+ tags:
8
+ - alpaca
9
+ - opt
10
+ - LLM
11
+ datasets:
12
+ - tatsu-lab/alpaca
13
+ inference: false
14
+ ---
15
+
16
+ <p align="center" width="100%">
17
+ <img src="https://huggingface.co/bofenghuang/vigogne-lora-opt-6.7b/resolve/main/vigogne_logo.png" alt="Vigogne" style="width: 40%; min-width: 300px; display: block; margin: auto;">
18
+ </p>
19
+
20
+ # Vigogne-LoRA-OPT-6.7B: A French Instruct LLaMA Model
21
+
22
+ Vigogne-LoRA-OPT-6.7B is a [facebook/opt-6.7b](https://huggingface.co/facebook/opt-6.7b) model fine-tuned on the translated [Stanford Alpaca](https://github.com/tatsu-lab/stanford_alpaca) dataset to follow the 🇫🇷 French instructions.
23
+
24
+ For more information, please visit the Github repo: https://github.com/bofenghuang/vigogne
25
+
26
+ **Usage and License Notices**: Same as [Stanford Alpaca](https://github.com/tatsu-lab/stanford_alpaca), Vigogne is intended and licensed for research use only. The dataset is CC BY NC 4.0 (allowing only non-commercial use) and models trained using the dataset should not be used outside of research purposes.
27
+
28
+ ## Usage
29
+
30
+ This repo only contains the low-rank adapter. In order to access the complete model, you also need to load the base LLM model and tokenizer.
31
+
32
+ ```python
33
+ from peft import PeftModel
34
+ from transformers import AutoModelForCausalLM, AutoTokenizer
35
+
36
+ tokenizer = LlamaTokenizer.from_pretrained("facebook/opt-6.7b")
37
+ model = LlamaForCausalLM.from_pretrained(
38
+ "facebook/opt-6.7b",
39
+ load_in_8bit=True,
40
+ device_map="auto",
41
+ )
42
+ model = PeftModel.from_pretrained(model, "bofenghuang/vigogne-lora-opt-6.7b")
43
+ ```
44
+
45
+ You can infer this model by using the following Google Colab Notebook.
46
+
47
+ <a href="https://colab.research.google.com/github/bofenghuang/vigogne/blob/main/infer.ipynb" target="_blank"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>
48
+
49
+ ## Bias, Risks, and Limitations
50
+
51
+ Vigogne is still under development, and there are many limitations that have to be addressed. Please note that it is possible that the model generates harmful or biased content, incorrect information or generally unhelpful answers.
52
+
53
+ ## Next Steps
54
+
55
+ - Add output examples
adapter_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_model_name_or_path": "facebook/opt-6.7b",
3
+ "bias": "none",
4
+ "enable_lora": null,
5
+ "fan_in_fan_out": false,
6
+ "inference_mode": true,
7
+ "lora_alpha": 32,
8
+ "lora_dropout": 0.05,
9
+ "merge_weights": false,
10
+ "modules_to_save": null,
11
+ "peft_type": "LORA",
12
+ "r": 16,
13
+ "target_modules": [
14
+ "q_proj",
15
+ "v_proj"
16
+ ],
17
+ "task_type": "CAUSAL_LM"
18
+ }
adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb0d5d17e0007b7fc20332ab3ab6c77dd5b47063631ffdfa3edbcf042f38cb96
3
+ size 33601485
runs/Mar27_00-55-13_koios.zaion.ai/1679871316.51785/events.out.tfevents.1679871316.koios.zaion.ai ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a98b399a1ea84d8e6258f0474171c4c149d2ca454f4eeb073bbf9870d2e07d72
3
+ size 5559
runs/Mar27_00-55-13_koios.zaion.ai/events.out.tfevents.1679871316.koios.zaion.ai ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:952225356dad02ee802c2711f40c1e27201e799d03c7d5bb4d56d4e887fcbbb7
3
+ size 6521
runs/Mar27_09-40-14_koios.zaion.ai/1679902816.0481842/events.out.tfevents.1679902816.koios.zaion.ai ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0346a184578b92e5cc11db1d679be509c792382147d9a92e8a77911518b67c3d
3
+ size 5559
runs/Mar27_09-40-14_koios.zaion.ai/events.out.tfevents.1679902816.koios.zaion.ai ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1bd97e0ae297d4e833fb989e8e87a19b7b356628ca6f95c336d2ba7896112e64
3
+ size 12983
vigogne_logo.png ADDED