Update README.md
Browse files
README.md
CHANGED
@@ -55,11 +55,11 @@ You are an expert developer. Please help me with any coding questions.<|end|>
|
|
55 |
<|user|>
|
56 |
In typescript how would I use a function that looks like this <T>(config:T):T<|end|>
|
57 |
<|assistant|>
|
58 |
-
|
59 |
input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
|
60 |
output = model.generate(inputs=input_ids, temperature=0.1, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=256)
|
61 |
|
62 |
generated_text = tokenizer.decode(output[0, len(input_ids[0]):], skip_special_tokens=True)
|
63 |
display(generated_text)
|
64 |
-
|
65 |
```
|
|
|
55 |
<|user|>
|
56 |
In typescript how would I use a function that looks like this <T>(config:T):T<|end|>
|
57 |
<|assistant|>
|
58 |
+
'''
|
59 |
input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
|
60 |
output = model.generate(inputs=input_ids, temperature=0.1, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=256)
|
61 |
|
62 |
generated_text = tokenizer.decode(output[0, len(input_ids[0]):], skip_special_tokens=True)
|
63 |
display(generated_text)
|
64 |
+
|
65 |
```
|