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

Add max_new_tokens to MPT handler #396

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update comment
ajaysaini725 committed Jun 22, 2023
commit 3ee27aec6791ffdf2adf0d27ec33e579260e7ddb
2 changes: 1 addition & 1 deletion examples/inference-deployments/mpt/mpt_handler.py
Original file line number Diff line number Diff line change
@@ -77,7 +77,7 @@ def predict(self, model_requests: List[Dict]):
model_requests: List of dictionaries that contain forward pass inputs as well
as other parameters, such as generate kwargs.

ex. [{'input': 'hello world!', 'parameters': {'max_length': 10}]
ex. [{'input': 'hello world!', 'parameters': {'max_new_tokens': 10}]
"""
generate_inputs = []
generate_kwargs = {}