HeinzFelipe2 commited on
Commit
7f30a14
1 Parent(s): 19fc06d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +19 -0
README.md CHANGED
@@ -7,7 +7,26 @@ tags: []
7
 
8
  <!-- Provide a quick summary of what the model is/does. -->
9
 
 
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
  ## Model Details
13
 
 
7
 
8
  <!-- Provide a quick summary of what the model is/does. -->
9
 
10
+ ## Use this model
11
 
12
+ Execute essa célula:
13
+
14
+
15
+ base_model = AutoModelForCausalLM.from_pretrained(
16
+ ¨mistralai/Mistral-7B-Instruct-v0.2",
17
+ low_cpu_mem_usage=True,
18
+ return_dict=True,
19
+ torch_dtype=torch.float16,
20
+ device_map={"": 0},
21
+ )
22
+
23
+ depois execute:
24
+
25
+ base_model.resize_token_embeddings(32208)
26
+
27
+ depois:
28
+
29
+ model= PeftModel.from_pretrained(base_model, "HeinzFelipe2/mistralai-Niceday-Finetune_V0.2_Articles_2")
30
 
31
  ## Model Details
32