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

Fix TypeError: can only concatenate str (not "list") to str on startup #242

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

this
Copy link
Member

@this this commented Jun 6, 2023

Fixes following error on startup python generate.py --base_model=distilgpt2 --load_8bit=True

Traceback (most recent call last):
  File "/home/sajith/src/h2ogpt/generate.py", line 1684, in <module>
    fire.Fire(main)
  File "/home/sajith/src/h2ogpt/venv/lib/python3.10/site-packages/fire/core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/home/sajith/src/h2ogpt/venv/lib/python3.10/site-packages/fire/core.py", line 475, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "/home/sajith/src/h2ogpt/venv/lib/python3.10/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "/home/sajith/src/h2ogpt/generate.py", line 363, in main
    get_generate_params(model_lower, chat,
  File "/home/sajith/src/h2ogpt/generate.py", line 1533, in get_generate_params
    example += [chat, '', '', 'Disabled', top_k_docs, chunk, chunk_size, ['All']]
TypeError: can only concatenate str (not "list") to str

@this this requested a review from pseudotensor June 6, 2023 16:37
Copy link
Collaborator

@pseudotensor pseudotensor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@pseudotensor pseudotensor merged commit 6c8a73f into main Jun 6, 2023
@this this deleted the sajith/main/fix-startup-error branch June 6, 2023 16:54
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

Successfully merging this pull request may close these issues.

2 participants