mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-17 11:23:49 +08:00
unified queueing
This commit is contained in:
@@ -9,8 +9,9 @@ class MessageRequest(pydantic.BaseModel):
|
||||
model_name: str = "distilgpt2"
|
||||
max_new_tokens: int = 100
|
||||
|
||||
def compatible_with(self, worker_config: inference.WorkerConfig) -> bool:
|
||||
return self.model_name == worker_config.model_name
|
||||
@property
|
||||
def worker_compat_hash(self) -> str:
|
||||
return f"{self.model_name}"
|
||||
|
||||
|
||||
class TokenResponseEvent(pydantic.BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user