piazzola commited on
Commit
e372aa0
·
1 Parent(s): 5fb9b8a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -1
README.md CHANGED
@@ -17,8 +17,11 @@ This model is a fine-tuned version of [facebook/opt-350m](https://huggingface.co
17
 
18
  ## Model description
19
 
 
 
20
  nlp = pipeline("text-generation",
21
- model="piazzola/tmp_trainer")
 
22
 
23
  nlp("Landlord hereby demises unto Tenant, and Tenant hereby leases from Landlord for the terms and upon the conditions set forth in this Lease 30,600 square feet of space in the building located at 15 Firstfield Road, Gaithersburg, Maryland, the Building, as set forth on Exhibit A, hereto attached, said space being referred to as the Premises.")
24
 
 
17
 
18
  ## Model description
19
 
20
+ Make sure to set max_new_tokens = 20; otherwise, the model will generate one token at a time.
21
+
22
  nlp = pipeline("text-generation",
23
+ model="piazzola/tmp_trainer",
24
+ max_new_tokens=20)
25
 
26
  nlp("Landlord hereby demises unto Tenant, and Tenant hereby leases from Landlord for the terms and upon the conditions set forth in this Lease 30,600 square feet of space in the building located at 15 Firstfield Road, Gaithersburg, Maryland, the Building, as set forth on Exhibit A, hereto attached, said space being referred to as the Premises.")
27