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 various server timeouts, lower --max_batch_size and --inference_max_length defaults #97

Merged
merged 4 commits into from
Nov 29, 2022

Conversation

borzunov
Copy link
Collaborator

@borzunov borzunov commented Nov 29, 2022

Summary:

parser.add_argument('--inference_max_length', type=int, default=2048,
                    help='Maximum total sequence length permitted per inference, defaults to 16384 tokens')
parser.add_argument('--max_batch_size', type=int, default=2048,
                    help='The total number of tokens in the same batch will not exceed this value')

parser.add_argument('--alloc_timeout', type=float, default=60,
                    help='If the cache is full, the server will wait for this number of seconds hoping that some memory will be freed '
                         'before rejecting the request')
parser.add_argument('--request_timeout', type=float, required=False, default=3 * 60,
                    help='Timeout for the whole rpc_forward/rpc_backward/rpc_forward_stream/rpc_backward_stream request')
parser.add_argument('--session_timeout', type=float, required=False, default=30 * 60,
                    help='Timeout for the whole inference session')
parser.add_argument('--step_timeout', type=float, required=False, default=5 * 60,
                    help="Timeout for waiting the next step's inputs inside an inference session")

This PR also enables PETALS_8BIT_BACKWARD by default.

@borzunov borzunov changed the title Add various server timeouts Add various server timeouts, lower --max_batch_size and --inference_max_length defaults Nov 29, 2022
@borzunov borzunov merged commit c6e1b5a into main Nov 29, 2022
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.

None yet

1 participant