-
Notifications
You must be signed in to change notification settings - Fork 118
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
There is a validation error #32
Comments
Yup! this is now fixed. Was caused by pydantic update having stricter rules. This is now fixed! Sorry about this. |
ValidationError Traceback (most recent call last) File ~/anaconda3/envs/ttd/lib/python3.10/site-packages/sketch/pandas_extension.py:330, in SketchHelper.ask(self, question, call_display) File ~/anaconda3/envs/ttd/lib/python3.10/site-packages/sketch/pandas_extension.py:180, in call_prompt_on_dataframe(df, prompt, **kwargs) File ~/anaconda3/envs/ttd/lib/python3.10/site-packages/lambdaprompt/prompt.py:109, in Prompt.call(self, *args, **kwargs) File ~/anaconda3/envs/ttd/lib/python3.10/site-packages/lambdaprompt/prompt.py:99, in Prompt.execute(self, *args, **kwargs) File ~/anaconda3/envs/ttd/lib/python3.10/site-packages/sketch/pandas_extension.py:264, in ask_from_parts(dfname, column_names, data_types, extras, question, index_col_name) File ~/anaconda3/envs/ttd/lib/python3.10/site-packages/lambdaprompt/prompt.py:109, in Prompt.call(self, *args, **kwargs) File ~/anaconda3/envs/ttd/lib/python3.10/site-packages/lambdaprompt/prompt.py:98, in Prompt.execute(self, *args, **kwargs) File ~/anaconda3/envs/ttd/lib/python3.10/site-packages/lambdaprompt/prompt.py:21, in resolve(obj) File ~/.local/lib/python3.10/site-packages/nest_asyncio.py:31, in _patch_asyncio..run(main, debug) File ~/.local/lib/python3.10/site-packages/nest_asyncio.py:99, in _patch_loop..run_until_complete(self, future) File ~/anaconda3/envs/ttd/lib/python3.10/asyncio/futures.py:201, in Future.result(self) File ~/anaconda3/envs/ttd/lib/python3.10/asyncio/tasks.py:232, in Task.__step(failed resolving arguments) File ~/anaconda3/envs/ttd/lib/python3.10/site-packages/lambdaprompt/prompt.py:176, in Completion.init..function(*prompt_args, **prompt_kwargs) File ~/anaconda3/envs/ttd/lib/python3.10/site-packages/lambdaprompt/backends.py:32, in get_backend(method) File ~/anaconda3/envs/ttd/lib/python3.10/site-packages/lambdaprompt/backends.py:15, in set_backend(backend_name) File ~/anaconda3/envs/ttd/lib/python3.10/site-packages/lambdaprompt/backends.py:305, in StarCoderCompletion.init(self, hf_access_token, **kwargs) File ~/anaconda3/envs/ttd/lib/python3.10/site-packages/lambdaprompt/backends.py:226, in HuggingFaceBackend.init(self, model_name, torch_dtype, trust_remote_code, use_auth_token, use_device_map, load_config, **param_override) File ~/anaconda3/envs/ttd/lib/python3.10/site-packages/lambdaprompt/backends.py:46, in Backend.init(self, **param_override) File ~/anaconda3/envs/ttd/lib/python3.10/site-packages/pydantic/main.py:171, in BaseModel.init(self, **data) ValidationError: 1 validation error for Parameters
|
For temporary fix, I have added line 220 of backends.py |
Hi team, thank you for the great work ! Thank you team ! |
Hello,
While I ran the following code:
I got the the error below:
Could you please help me figure out the reason? Thanks!
The text was updated successfully, but these errors were encountered: