Commit
·
1121e12
1
Parent(s):
3e86fe1
Update README.md
Browse files
README.md
CHANGED
@@ -69,7 +69,6 @@ Given these potential pitfalls, and others not explicitly mentioned, it's essent
|
|
69 |
### License
|
70 |
The model is licensed under [Research License](https://huggingface.co/microsoft/phi-1/resolve/main/Research%20License.docx).
|
71 |
|
72 |
-
|
73 |
### Sample Code
|
74 |
```python
|
75 |
import torch
|
@@ -83,7 +82,7 @@ inputs = tokenizer('''def print_prime(n):
|
|
83 |
Print all primes between 1 and n
|
84 |
"""''', return_tensors="pt", return_attention_mask=False)
|
85 |
|
86 |
-
outputs = model.generate(**inputs, max_length=
|
87 |
text = tokenizer.batch_decode(outputs)[0]
|
88 |
print(text)
|
89 |
```
|
|
|
69 |
### License
|
70 |
The model is licensed under [Research License](https://huggingface.co/microsoft/phi-1/resolve/main/Research%20License.docx).
|
71 |
|
|
|
72 |
### Sample Code
|
73 |
```python
|
74 |
import torch
|
|
|
82 |
Print all primes between 1 and n
|
83 |
"""''', return_tensors="pt", return_attention_mask=False)
|
84 |
|
85 |
+
outputs = model.generate(**inputs, max_length=200)
|
86 |
text = tokenizer.batch_decode(outputs)[0]
|
87 |
print(text)
|
88 |
```
|