Update README.md
Browse files
README.md
CHANGED
|
@@ -11,7 +11,7 @@ base_model:
|
|
| 11 |
pipeline_tag: text-generation
|
| 12 |
---
|
| 13 |
|
| 14 |
-
#
|
| 15 |
|
| 16 |
<!-- Provide a quick summary of what the model is/does. -->
|
| 17 |
|
|
@@ -41,8 +41,22 @@ This is the model card of a 🤗 transformers model that has been pushed on the
|
|
| 41 |
- **Paper [optional]:** [More Information Needed]
|
| 42 |
- **Demo [optional]:** [More Information Needed]
|
| 43 |
|
| 44 |
-
##
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 47 |
|
| 48 |
### Direct Use
|
|
|
|
| 11 |
pipeline_tag: text-generation
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# GEN-1
|
| 15 |
|
| 16 |
<!-- Provide a quick summary of what the model is/does. -->
|
| 17 |
|
|
|
|
| 41 |
- **Paper [optional]:** [More Information Needed]
|
| 42 |
- **Demo [optional]:** [More Information Needed]
|
| 43 |
|
| 44 |
+
## How to use
|
| 45 |
+
```py
|
| 46 |
+
from transformers import pipeline
|
| 47 |
+
|
| 48 |
+
pipe = pipeline("text-generation", model="Ichi075/GEN-1")
|
| 49 |
+
messages = [
|
| 50 |
+
{"role": "user", "content": "Who are you?"},
|
| 51 |
+
]
|
| 52 |
+
pipe(messages)
|
| 53 |
+
```
|
| 54 |
+
```py
|
| 55 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 56 |
+
|
| 57 |
+
tokenizer = AutoTokenizer.from_pretrained("Ichi075/GEN-1")
|
| 58 |
+
model = AutoModelForCausalLM.from_pretrained("Ichi075/GEN-1")
|
| 59 |
+
```
|
| 60 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 61 |
|
| 62 |
### Direct Use
|