AISimplyExplained commited on
Commit
ac08d0c
1 Parent(s): 722902f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -1
README.md CHANGED
@@ -3,4 +3,20 @@ license: apache-2.0
3
  library_name: peft
4
  base_model: unsloth/mistral-7b
5
  ---
6
- LoRA Adapter for RBI Notifications Dataset
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  library_name: peft
4
  base_model: unsloth/mistral-7b
5
  ---
6
+ LoRA Adapter for RBI Notifications Dataset
7
+
8
+ ## Directions for Usage
9
+
10
+ ```python
11
+
12
+ !pip install "unsloth[colab_ampere] @ git+https://github.com/unslothai/unsloth.git"
13
+ !pip install "git+https://github.com/huggingface/transformers.git"
14
+
15
+ from peft import PeftModel, PeftConfig
16
+ from transformers import AutoModelForCausalLM
17
+
18
+ config = PeftConfig.from_pretrained("AISimplyExplained/RBI-Notif64")
19
+ model = AutoModelForCausalLM.from_pretrained("unsloth/mistral-7b-bnb-4bit")
20
+ model = PeftModel.from_pretrained(model, "AISimplyExplained/RBI-Notif64")
21
+
22
+ ```