mirror of
https://github.com/GayPizzaSpecifications/stable-diffusion-rpc.git
synced 2025-08-05 22:41:30 +00:00
Split out worker related things to a separate service definition.
This commit is contained in:
@ -32,15 +32,6 @@ public actor ModelManager {
|
||||
var results: [SdModelInfo] = []
|
||||
for simpleInfo in modelInfos.values {
|
||||
var info = try SdModelInfo(jsonString: simpleInfo.jsonString())
|
||||
if let maybeLoaded = modelStates[info.name] {
|
||||
info.isLoaded = await maybeLoaded.isModelLoaded()
|
||||
if let loadedComputeUnits = await maybeLoaded.loadedModelComputeUnits() {
|
||||
info.loadedComputeUnits = loadedComputeUnits
|
||||
}
|
||||
} else {
|
||||
info.isLoaded = false
|
||||
info.loadedComputeUnits = .init()
|
||||
}
|
||||
|
||||
if info.attention == .splitEinSum {
|
||||
info.supportedComputeUnits = [
|
||||
|
Reference in New Issue
Block a user