Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with running run_xsum_flexgen.py #15

Open
gushu333 opened this issue Dec 21, 2023 · 0 comments
Open

Error with running run_xsum_flexgen.py #15

gushu333 opened this issue Dec 21, 2023 · 0 comments

Comments

@gushu333
Copy link

Hi, I tried to run the summarization task with the command :

python run_xsum_flexgen.py --model opt-6.7b --output flexgen_6.7b.res

but run into the following error:

Traceback (most recent call last):
File "/xxx/H2O/H2O-main/h2o_flexgen/benchmark/xsum/run_xsum_flexgen.py", line 242, in <module>
  main()
File "/xxx/H2O/H2O-main/h2o_flexgen/benchmark/xsum/run_xsum_flexgen.py", line 235, in main
  total_time, throughput = run_inference(model_name, requests)
File "/xxx/H2O/H2O-main/h2o_flexgen/benchmark/xsum/run_xsum_flexgen.py", line 154, in run_inference
  output_ids = model.generate(
File "/xxx/H2O/H2O-main/h2o_flexgen/flexgen/flex_opt.py", line 946, in generate
  self.generation_loop_overlap_single_batch()
File "/xxx/H2O/H2O-main/h2o_flexgen/flexgen/flex_opt.py", line 1085, in generation_loop_overlap_single_batch
  self.store_cache(i, j-1, 0)
File "/xxx/H2O/H2O-main/h2o_flexgen/flexgen/flex_opt.py", line 770, in store_cache
  self.layers[j].store_cache(self.cache_home[j][k], self.cache_write_buf[j][k], i)
File "/xxx/H2O/H2O-main/h2o_flexgen/flexgen/flex_opt.py", line 429, in store_cache
  k_home, v_home, acc = cache_home.val
 ValueError: not enough values to unpack (expected 3, got 2)

Can you figure out the reason?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant