Ichi075 commited on
Commit
74f5032
·
verified ·
1 Parent(s): 5ecda95

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -3
README.md CHANGED
@@ -11,7 +11,7 @@ base_model:
11
  pipeline_tag: text-generation
12
  ---
13
 
14
- # Model Card for Model ID
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
- ## Uses
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