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

vllm sampling_params not supported in generate.json #1374

Open
soumyasmruti opened this issue Jan 11, 2025 · 0 comments
Open

vllm sampling_params not supported in generate.json #1374

soumyasmruti opened this issue Jan 11, 2025 · 0 comments

Comments

@soumyasmruti
Copy link

What behavior of the library made you think about the improvement?

when using generate.json with vllm it doesn't support sampling_params.

Getting the following error

prediction failed because json() got an unexpected keyword argument 'sampling_params'

How would you like it to behave?

Sound be able to do,

  generator = outlines.generate.json(
                        self.model,
                        json_schema,
                        sampling_params=self.sampling_params
                    )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant