Update README.md
Browse files
README.md
CHANGED
@@ -66,7 +66,7 @@ generate_text = pipeline(
|
|
66 |
res = generate_text(
|
67 |
"Why is drinking water so healthy?",
|
68 |
min_new_tokens=2,
|
69 |
-
max_new_tokens=
|
70 |
do_sample=False,
|
71 |
num_beams=1,
|
72 |
temperature=float(0.3),
|
@@ -109,7 +109,7 @@ generate_text = H2OTextGenerationPipeline(model=model, tokenizer=tokenizer)
|
|
109 |
res = generate_text(
|
110 |
"Why is drinking water so healthy?",
|
111 |
min_new_tokens=2,
|
112 |
-
max_new_tokens=
|
113 |
do_sample=False,
|
114 |
num_beams=1,
|
115 |
temperature=float(0.3),
|
@@ -139,7 +139,7 @@ inputs = tokenizer(prompt, return_tensors="pt", add_special_tokens=False).to("cu
|
|
139 |
tokens = model.generate(
|
140 |
**inputs,
|
141 |
min_new_tokens=2,
|
142 |
-
max_new_tokens=
|
143 |
do_sample=False,
|
144 |
num_beams=1,
|
145 |
temperature=float(0.3),
|
|
|
66 |
res = generate_text(
|
67 |
"Why is drinking water so healthy?",
|
68 |
min_new_tokens=2,
|
69 |
+
max_new_tokens=1024,
|
70 |
do_sample=False,
|
71 |
num_beams=1,
|
72 |
temperature=float(0.3),
|
|
|
109 |
res = generate_text(
|
110 |
"Why is drinking water so healthy?",
|
111 |
min_new_tokens=2,
|
112 |
+
max_new_tokens=1024,
|
113 |
do_sample=False,
|
114 |
num_beams=1,
|
115 |
temperature=float(0.3),
|
|
|
139 |
tokens = model.generate(
|
140 |
**inputs,
|
141 |
min_new_tokens=2,
|
142 |
+
max_new_tokens=1024,
|
143 |
do_sample=False,
|
144 |
num_beams=1,
|
145 |
temperature=float(0.3),
|