Commit
·
bc694d7
1
Parent(s):
6e3922c
Update README.md
Browse files
README.md
CHANGED
@@ -63,10 +63,18 @@ tokenizer = AutoTokenizer.from_pretrained(model_id,
|
|
63 |
tokenizer.pad_token = tokenizer.eos_token
|
64 |
tokenizer.padding_side = 'right'
|
65 |
|
|
|
66 |
txt="""<|im_start|>user
|
67 |
I'm looking for an efficient Python script to output prime numbers. Can you help me out? I'm interested in a script that can handle large numbers and output them quickly. Also, it would be great if the script could take a range of numbers as input and output all the prime numbers within that range. Can you generate a script that fits these requirements? Thanks!<|im_end|>
|
68 |
<|im_start|>assistant
|
69 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
inputs = tokenizer.encode(txt, return_tensors="pt").to("cuda")
|
71 |
|
72 |
generation_config = GenerationConfig(
|
|
|
63 |
tokenizer.pad_token = tokenizer.eos_token
|
64 |
tokenizer.padding_side = 'right'
|
65 |
|
66 |
+
#EXAMPLE #1
|
67 |
txt="""<|im_start|>user
|
68 |
I'm looking for an efficient Python script to output prime numbers. Can you help me out? I'm interested in a script that can handle large numbers and output them quickly. Also, it would be great if the script could take a range of numbers as input and output all the prime numbers within that range. Can you generate a script that fits these requirements? Thanks!<|im_end|>
|
69 |
<|im_start|>assistant
|
70 |
"""
|
71 |
+
|
72 |
+
#EXAMPLE #1
|
73 |
+
txt="""<|im_start|>user
|
74 |
+
Estoy desarrollando una REST API con Nodejs, y estoy tratando de aplicar algún sistema de seguridad, ya sea con tokens o algo similar, me puedes ayudar?<|im_end|>
|
75 |
+
<|im_start|>assistant
|
76 |
+
"""
|
77 |
+
|
78 |
inputs = tokenizer.encode(txt, return_tensors="pt").to("cuda")
|
79 |
|
80 |
generation_config = GenerationConfig(
|