Update README.md
Browse files
README.md
CHANGED
@@ -15,6 +15,8 @@ inference_config:
|
|
15 |
num_beams: 1
|
16 |
do_sample: true
|
17 |
repetition_penalty: 1.8
|
|
|
|
|
18 |
---
|
19 |
|
20 |
## Model Summary
|
@@ -62,4 +64,4 @@ with torch.no_grad():
|
|
62 |
output = model.generate(input_ids, max_length=35, num_beams=1, do_sample=True, repetition_penalty=1.8)
|
63 |
target_sequence = tokenizer.decode(output[0], skip_special_tokens=True)
|
64 |
print(f'Target: {target_sequence}')
|
65 |
-
```
|
|
|
15 |
num_beams: 1
|
16 |
do_sample: true
|
17 |
repetition_penalty: 1.8
|
18 |
+
tags:
|
19 |
+
- code
|
20 |
---
|
21 |
|
22 |
## Model Summary
|
|
|
64 |
output = model.generate(input_ids, max_length=35, num_beams=1, do_sample=True, repetition_penalty=1.8)
|
65 |
target_sequence = tokenizer.decode(output[0], skip_special_tokens=True)
|
66 |
print(f'Target: {target_sequence}')
|
67 |
+
```
|