Update README.md
Browse files
README.md
CHANGED
@@ -8,7 +8,7 @@ pipeline_tag: text-generation
|
|
8 |
license: mit
|
9 |
---
|
10 |
|
11 |
-
# **phi-2-
|
12 |
|
13 |
## Model Details
|
14 |
**Model Developers**
|
@@ -31,7 +31,7 @@ license: mit
|
|
31 |
| Model | Copa | HellaSwag | BoolQ | MMLU |
|
32 |
| --- | --- | --- | --- | --- |
|
33 |
| | 0-shot | 0-shot | 0-shot | 0-shot |
|
34 |
-
| **
|
35 |
|
36 |
---
|
37 |
# Sample Code
|
@@ -41,8 +41,8 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
41 |
|
42 |
torch.set_default_device("cuda")
|
43 |
|
44 |
-
model = AutoModelForCausalLM.from_pretrained("field2437/phi-2-
|
45 |
-
tokenizer = AutoTokenizer.from_pretrained("field2437/phi-2-
|
46 |
|
47 |
inputs = tokenizer('''Below is an instruction that describes a task. Write a response that appropriately completes the request.
|
48 |
|
|
|
8 |
license: mit
|
9 |
---
|
10 |
|
11 |
+
# **phi-2-platypus-Commercial-lora**
|
12 |
|
13 |
## Model Details
|
14 |
**Model Developers**
|
|
|
31 |
| Model | Copa | HellaSwag | BoolQ | MMLU |
|
32 |
| --- | --- | --- | --- | --- |
|
33 |
| | 0-shot | 0-shot | 0-shot | 0-shot |
|
34 |
+
| **phi-2-platypus-Commercial-lora** | 0.8900 | 0.5573 | 0.8260 | 0.5513 |
|
35 |
|
36 |
---
|
37 |
# Sample Code
|
|
|
41 |
|
42 |
torch.set_default_device("cuda")
|
43 |
|
44 |
+
model = AutoModelForCausalLM.from_pretrained("field2437/phi-2-platypus-Commercial-lora", torch_dtype="auto", trust_remote_code=True)
|
45 |
+
tokenizer = AutoTokenizer.from_pretrained("field2437/phi-2-platypus-Commercial-lora", trust_remote_code=True)
|
46 |
|
47 |
inputs = tokenizer('''Below is an instruction that describes a task. Write a response that appropriately completes the request.
|
48 |
|