shkna1368 commited on
Commit
ee1c944
·
verified ·
1 Parent(s): 91cedbf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -2
README.md CHANGED
@@ -1,6 +1,7 @@
1
  ---
2
  library_name: transformers
3
- tags: []
 
4
  ---
5
 
6
  # Model Card for Model ID
@@ -87,7 +88,17 @@ Users (both direct and downstream) should be made aware of the risks, biases and
87
 
88
  ## How to Get Started with the Model
89
 
90
- Use the code below to get started with the model.
 
 
 
 
 
 
 
 
 
 
91
 
92
  [More Information Needed]
93
 
 
1
  ---
2
  library_name: transformers
3
+ language:
4
+ - ku
5
  ---
6
 
7
  # Model Card for Model ID
 
88
 
89
  ## How to Get Started with the Model
90
 
91
+ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
92
+
93
+ tokenizer = AutoTokenizer.from_pretrained("shkna1368/v1-Hawramiana")
94
+
95
+ model = AutoModelForSeq2SeqLM.from_pretrained("shkna1368/v1-Hawramiana")
96
+
97
+ input_ids = tokenizer.encode(question, return_tensors="pt")
98
+
99
+ output_ids = model.generate(input_ids, max_length=1200, num_beams=200, early_stopping=False)
100
+
101
+ answer = tokenizer.decode(output_ids[0], skip_special_tokens=True)
102
 
103
  [More Information Needed]
104