mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-20 12:10:50 +08:00
unified queueing
This commit is contained in:
@@ -9,6 +9,10 @@ from . import protocol
|
||||
class WorkerConfig(pydantic.BaseModel):
|
||||
model_name: str = "distilgpt2"
|
||||
|
||||
@property
|
||||
def compat_hash(self) -> str:
|
||||
return f"{self.model_name}"
|
||||
|
||||
|
||||
class WorkRequest(pydantic.BaseModel):
|
||||
conversation: protocol.Conversation = pydantic.Field(..., repr=False)
|
||||
|
||||
Reference in New Issue
Block a user