nip.language_model_server.exceptions

nip.language_model_server.exceptions#

Exceptions for the language model server and client.

Exceptions

AccelerateConfigNotFoundError(config_path)

Exception raised when the accelerate configuration file is not found.

BadResponseError(message[, response])

Exception raised when the server returns an invalid response.

ClientTimeoutError

Exception raised when a request to the language model server times out.

LanguageModelClientError

Base exception for errors encountered by the language model client.

LanguageModelServerError

Base exception for errors encountered by the language model server.

MaxTrainingJobsReachedError(max_jobs)

Exception raised when the maximum number of training jobs is reached.

TrainingJobNotFoundError(job_id)

Exception raised when a training job is not found.

VllmNoGpusError()

Exception raised when no GPUs are available for the vLLM server.

VllmNotInstalledError()

Exception raised when vLLM is not installed.

VllmServerError(status)

Exception raised when there is an error with the vLLM server.

VllmServerNotRunningError()

Exception raised when trying to stop a vLLM server that is not running.