weiren119 commited on
Commit
c2d626f
1 Parent(s): 8d1426d

Update with github description

Browse files
Files changed (1) hide show
  1. README.md +17 -2
README.md CHANGED
@@ -9,8 +9,23 @@ tags:
9
  - text-generation-inference
10
  pipeline_tag: text-generation
11
  ---
12
- ## Finetuned dataset
13
- - NTU NLP Lab's translated alapaca-tw_en dataset: alpaca-tw_en-align.json: [ntunpllab](https://github.com/ntunlplab/traditional-chinese-alpaca) translate Stanford Alpaca 52k dataset
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  ## Use which pretrained model
16
  - NousResearch: https://huggingface.co/NousResearch/Llama-2-7b-chat-hf
 
9
  - text-generation-inference
10
  pipeline_tag: text-generation
11
  ---
12
+ # Traditional Chinese Llama2
13
+
14
+ - github repo: https://github.com/MIBlue119/traditional_chinese_llama2/
15
+ Practice to finetune Llama2 on traditional chinese instruction dataset at Llama2 chat model.
16
+ I use qlora and the alpaca translated dataset to finetune llama2-7b model at rtx3090(24GB VRAM) with 9 hours.
17
+
18
+ Thanks for these references:
19
+ - NTU NLP Lab's alapaca dataset: [alpaca-tw_en-align.json](./alpaca-tw-en-align.json): [ntunpllab](https://github.com/ntunlplab/traditional-chinese-alpaca) translate Stanford Alpaca 52k dataset
20
+ - [Chinese Llama 2 7B train.py](https://github.com/LinkSoul-AI/Chinese-Llama-2-7b/blob/main/train.py)
21
+ - [Load the pretrained model in 4-bit precision and Set training with LoRA according to hf's trl lib](https://github.com/lvwerra/trl/blob/main/examples/scripts/sft_trainer.py): QLoRA finetuning
22
+
23
+ ## Resources
24
+ - traditional chinese qlora finetuned Llama2 merge model: [weiren119/traditional_chinese_qlora_llama2_merged](https://huggingface.co/weiren119/traditional_chinese_qlora_llama2_merged)
25
+ - traditional chinese qlora adapter model: [weiren119/traditional_chinese_qlora_llama2](https://huggingface.co/weiren119/traditional_chinese_qlora_llama2)
26
+
27
+ ## Online Demo
28
+ - [Run the qlora finetuned model at colab](https://colab.research.google.com/drive/1OYXvhY-8KjEDaGhOLrJe4omjtFgOWjy1?usp=sharing): May need colab pro or colab pro+
29
 
30
  ## Use which pretrained model
31
  - NousResearch: https://huggingface.co/NousResearch/Llama-2-7b-chat-hf