psinger commited on
Commit
b64b221
1 Parent(s): 6c718c9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
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=512,
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=512,
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=512,
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),