Update README.md
Browse files
README.md
CHANGED
@@ -56,6 +56,7 @@ To use the phi-2-chaos-gen model, follow these steps:
|
|
56 |
Load the phi-2-chaos-gen model using the transformers package. Ensure you have an internet connection as the model will be downloaded the first time you run this code.
|
57 |
|
58 |
```python
|
|
|
59 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
60 |
|
61 |
base_model_id = "microsoft/phi-2"
|
@@ -74,7 +75,6 @@ To use the phi-2-chaos-gen model, follow these steps:
|
|
74 |
You can now use the model to generate text. For example:
|
75 |
```python
|
76 |
from peft import PeftModel
|
77 |
-
import torch
|
78 |
|
79 |
ft_model = PeftModel.from_pretrained(base_model, "webnizam/phi-2-chaos-gen")
|
80 |
|
|
|
56 |
Load the phi-2-chaos-gen model using the transformers package. Ensure you have an internet connection as the model will be downloaded the first time you run this code.
|
57 |
|
58 |
```python
|
59 |
+
import torch
|
60 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
61 |
|
62 |
base_model_id = "microsoft/phi-2"
|
|
|
75 |
You can now use the model to generate text. For example:
|
76 |
```python
|
77 |
from peft import PeftModel
|
|
|
78 |
|
79 |
ft_model = PeftModel.from_pretrained(base_model, "webnizam/phi-2-chaos-gen")
|
80 |
|