Startup: Check agnostically for inference deps
If an inference dep isn't present, force exit the application. This occurs after all subcommands have been appropriately processed. Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
This commit is contained in:
parent
33ac016023
commit
48ea1737cf
2 changed files with 17 additions and 3 deletions
|
|
@ -26,7 +26,7 @@ class DependenciesModel(BaseModel):
|
|||
@computed_field
|
||||
@property
|
||||
def inference(self) -> bool:
|
||||
return self.torch and (self.exllamav2 or self.exllamav3) and self.flash_attn
|
||||
return self.torch and (self.exllamav2 or (self.exllamav3 and self.flash_attn))
|
||||
|
||||
|
||||
def is_installed(package_name: str) -> bool:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue