esokullu commited on
Commit
542c2f9
1 Parent(s): 46b7696

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +44 -0
README.md CHANGED
@@ -1,3 +1,47 @@
1
  ---
2
  license: openrail
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: openrail
3
+ language:
4
+ - tr
5
+ pipeline_tag: text-generation
6
+ library_name: transformers
7
+ tags:
8
+ - alpaca
9
+ - llama
10
+ - LLM
11
+ - Turkish
12
+ datasets:
13
+ - tatsu-lab/alpaca
14
+ inference: false
15
  ---
16
+
17
+ Sokullu-LoRA-13b is a LLaMA-13B model fine-tuned on the translated [Stanford Alpaca](https://github.com/tatsu-lab/stanford_alpaca) dataset to follow the 🇹🇷 Turkish instructions.
18
+
19
+ For more information, please visit the Github repo: https://github.com/esokullu/sokullu-lora
20
+
21
+ **Usage and License Notices**: Same as [Stanford Alpaca](https://github.com/tatsu-lab/stanford_alpaca), Sokullu-LoRA 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.
22
+
23
+ ## Usage
24
+ 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.
25
+
26
+ ```python
27
+ from peft import PeftModel
28
+ from transformers import LlamaForCausalLM, LlamaTokenizer
29
+
30
+ base_model_name_or_path = "<name/or/path/to/hf/llama/13b/model>"
31
+ lora_model_name_or_path = "sokullu/sokullu-lora-13b"
32
+
33
+ tokenizer = LlamaTokenizer.from_pretrained(base_model_name_or_path)
34
+ model = LlamaForCausalLM.from_pretrained(
35
+ base_model_name_or_path,
36
+ load_in_8bit=True,
37
+ device_map="auto",
38
+ )
39
+ model = PeftModel.from_pretrained(model, lora_model_name_or_path)
40
+ ```
41
+ You can infer this model by using the following Google Colab Notebook.
42
+
43
+ ## Limitations
44
+ Sokullu-LoRA 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.
45
+
46
+
47
+