shkna1368 commited on
Commit
da2c7c0
1 Parent(s): 919dc07

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -13
README.md CHANGED
@@ -72,20 +72,9 @@ This is the model card of a 🤗 transformers model that has been pushed on the
72
 
73
  ### Direct Use
74
 
75
- from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
76
-
77
- tokenizer = AutoTokenizer.from_pretrained("shkna1368/v1-Kurdana")
78
- model = AutoModelForSeq2SeqLM.from_pretrained("shkna1368/v1-Kurdana")
79
-
80
- input_ids = tokenizer.encode(question, return_tensors="pt")
81
 
82
- output_ids = model.generate(input_ids, max_length=1200, num_beams=200, early_stopping=False)
83
 
84
- answer = tokenizer.decode(output_ids[0], skip_special_tokens=True)
85
 
86
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
87
-
88
- [More Information Needed]
89
 
90
  ### Downstream Use [optional]
91
 
@@ -113,9 +102,16 @@ Users (both direct and downstream) should be made aware of the risks, biases and
113
 
114
  ## How to Get Started with the Model
115
 
116
- Use the code below to get started with the model.
117
 
118
- [More Information Needed]
 
 
 
 
 
 
 
119
 
120
  ## Training Details
121
 
 
72
 
73
  ### Direct Use
74
 
 
 
 
 
 
 
75
 
 
76
 
 
77
 
 
 
 
78
 
79
  ### Downstream Use [optional]
80
 
 
102
 
103
  ## How to Get Started with the Model
104
 
105
+ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
106
 
107
+ tokenizer = AutoTokenizer.from_pretrained("shkna1368/v1-Kurdana")
108
+ model = AutoModelForSeq2SeqLM.from_pretrained("shkna1368/v1-Kurdana")
109
+
110
+ input_ids = tokenizer.encode(question, return_tensors="pt")
111
+
112
+ output_ids = model.generate(input_ids, max_length=1200, num_beams=200, early_stopping=False)
113
+
114
+ answer = tokenizer.decode(output_ids[0], skip_special_tokens=True)
115
 
116
  ## Training Details
117