pszemraj commited on
Commit
346ae4b
·
verified ·
1 Parent(s): b4532ce

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -6
README.md CHANGED
@@ -22,6 +22,7 @@ It achieves the following results on the evaluation set:
22
  - Num Input Tokens Seen: 14258488
23
 
24
  ```py
 
25
  from transformers import pipeline
26
 
27
  model_name = "pszemraj/bart-large-summary-map-reduce-1024"
@@ -39,13 +40,9 @@ text = """A computer implemented method of generating a syntactic object. The me
39
  A computer implemented method for changing a first workspace to a second workspace. The method includes the steps of creating a new workspace by merging the first workspace with the second workspace, wherein the merging is based on at least one of: an impenetrable condition; a constraint on movement; and a resource restriction.
40
  The brain is constantly loosing neurons because you doesn't want all the junk around."""
41
 
42
- import torch
43
- import textwrap
44
-
45
- torch.cuda.is_available()
46
- res = pipe(text, max_new_tokens=500, num_beams=4, early_stopping=True)
47
- textwrap.wrap(res[0]["generated_text"], width=100)
48
 
 
 
49
  res[0]["generated_text"]
50
  ```
51
 
 
22
  - Num Input Tokens Seen: 14258488
23
 
24
  ```py
25
+ import torch
26
  from transformers import pipeline
27
 
28
  model_name = "pszemraj/bart-large-summary-map-reduce-1024"
 
40
  A computer implemented method for changing a first workspace to a second workspace. The method includes the steps of creating a new workspace by merging the first workspace with the second workspace, wherein the merging is based on at least one of: an impenetrable condition; a constraint on movement; and a resource restriction.
41
  The brain is constantly loosing neurons because you doesn't want all the junk around."""
42
 
 
 
 
 
 
 
43
 
44
+ torch.cuda.empty_cache()
45
+ res = pipe(text, max_new_tokens=512, num_beams=4, early_stopping=True)
46
  res[0]["generated_text"]
47
  ```
48