The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SwiftRWKV, reference main (5d37c5), with Swift 6.1 for macOS (SPM) on 18 Nov 2026 18:40:34 UTC.

Swift 6 data race errors: 13

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

343 | func distill() throws {
    |      `- note: add '@MainActor' to make global function 'distill()' part of global actor 'MainActor'
344 |     // все проверки ключей — до учителя: ошибка в них не должна стоить минут генерации (01.11)
345 |     guard !args.system.isEmpty, !args.trainQuestions.isEmpty, !args.teacherCache.isEmpty else {
    :
546 |             var losses: [Float] = [], tokens: [Int] = []
547 |             for q in heldSeqs {
548 |                 losses.append(StateTuning.heldOutLoss(base, state: state, batches: [pack([q])], config: cfg))
    |                                                       `- warning: main actor-isolated let 'base' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
549 |                 tokens.append(q.y.filter { $0 >= 0 }.count)
550 |             }
/Users/admin/builder/spi-builder-workspace/Sources/GenRun/main.swift:552:50: warning: main actor-isolated let 'base' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
222 |
223 | let t0 = Date()
224 | let base = try loadBase(args.model)
    |     `- note: let declared here
225 | print(String(format: "модель: L=%d D=%d, загрузка %.1f с", base.cfg.nLayer, base.cfg.nEmbd, Date().timeIntervalSince(t0)))
226 |
    :
341 |
342 | /// Обучение состояния вместо системной строки (см. шапку).
343 | func distill() throws {
    |      `- note: add '@MainActor' to make global function 'distill()' part of global actor 'MainActor'
344 |     // все проверки ключей — до учителя: ошибка в них не должна стоить минут генерации (01.11)
345 |     guard !args.system.isEmpty, !args.trainQuestions.isEmpty, !args.teacherCache.isEmpty else {
    :
550 |             }
551 |             let mean = zip(losses, tokens).reduce(0.0) { $0 + Double($1.0) * Double($1.1) } / Double(tokens.reduce(0, +))
552 |             let packed = StateTuning.heldOutLoss(base, state: state, batches: heldBatches, config: cfg)
    |                                                  `- warning: main actor-isolated let 'base' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
553 |             print(String(format: "  пачками по %d (как в ранней остановке): %.4f", args.batch, packed))
554 |             print(String(format: "отложенный лосс %@: %.4f (%d последовательностей, %@, приведение %@)",
/Users/admin/builder/spi-builder-workspace/Sources/GenRun/main.swift:565:68: warning: main actor-isolated let 'base' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
222 |
223 | let t0 = Date()
224 | let base = try loadBase(args.model)
    |     `- note: let declared here
225 | print(String(format: "модель: L=%d D=%d, загрузка %.1f с", base.cfg.nLayer, base.cfg.nEmbd, Date().timeIntervalSince(t0)))
226 |
    :
341 |
342 | /// Обучение состояния вместо системной строки (см. шапку).
343 | func distill() throws {
    |      `- note: add '@MainActor' to make global function 'distill()' part of global actor 'MainActor'
344 |     // все проверки ключей — до учителя: ошибка в них не должна стоить минут генерации (01.11)
345 |     guard !args.system.isEmpty, !args.trainQuestions.isEmpty, !args.teacherCache.isEmpty else {
    :
563 |         return
564 |     }
565 |     var initial: RWKVBatchState? = args.initMode == "zero" ? nil : base.foldPrompt(tok.encode(systemPart))
    |                                                                    `- warning: main actor-isolated let 'base' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
566 |     if args.initMode == "fold-wkv", let f = initial {
567 |         // свёртка без сдвигов токена: такое состояние переносится в .pth RWKV-PEFT без потерь
/Users/admin/builder/spi-builder-workspace/Sources/GenRun/main.swift:575:31: warning: main actor-isolated let 'base' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
222 |
223 | let t0 = Date()
224 | let base = try loadBase(args.model)
    |     `- note: let declared here
225 | print(String(format: "модель: L=%d D=%d, загрузка %.1f с", base.cfg.nLayer, base.cfg.nEmbd, Date().timeIntervalSince(t0)))
226 |
    :
341 |
342 | /// Обучение состояния вместо системной строки (см. шапку).
343 | func distill() throws {
    |      `- note: add '@MainActor' to make global function 'distill()' part of global actor 'MainActor'
344 |     // все проверки ключей — до учителя: ошибка в них не должна стоить минут генерации (01.11)
345 |     guard !args.system.isEmpty, !args.trainQuestions.isEmpty, !args.teacherCache.isEmpty else {
    :
573 |     }
574 |     let t1 = Date()
575 |     let out = StateTuning.run(base, nextBatch: nextBatch, config: cfg, initial: initial, heldOut: heldBatches,
    |                               `- warning: main actor-isolated let 'base' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
576 |                               onEval: { step, loss, best in
577 |         print(String(format: "  проверка: шаг %d, отложенный лосс %.4f%@, %.0f с", step, loss, best ? " (лучший)" : "",
/Users/admin/builder/spi-builder-workspace/Sources/GenRun/main.swift:596:49: warning: main actor-isolated let 'base' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
222 |
223 | let t0 = Date()
224 | let base = try loadBase(args.model)
    |     `- note: let declared here
225 | print(String(format: "модель: L=%d D=%d, загрузка %.1f с", base.cfg.nLayer, base.cfg.nEmbd, Date().timeIntervalSince(t0)))
226 |
    :
341 |
342 | /// Обучение состояния вместо системной строки (см. шапку).
343 | func distill() throws {
    |      `- note: add '@MainActor' to make global function 'distill()' part of global actor 'MainActor'
344 |     // все проверки ключей — до учителя: ошибка в них не должна стоить минут генерации (01.11)
345 |     guard !args.system.isEmpty, !args.trainQuestions.isEmpty, !args.teacherCache.isEmpty else {
    :
594 |         try StateFile.exportPEFT(out.state, to: URL(fileURLWithPath: expand(args.stateOut)), dropShifts: args.dropShifts)
595 |     } else {
596 |         _ = try StateFile.save(out.state, base: base, to: URL(fileURLWithPath: expand(args.stateOut)),
    |                                                 `- warning: main actor-isolated let 'base' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
597 |                                kind: .tuned, trained: cfg.train, note: note)
598 |     }
[368/390] Write Objects.LinkFileList
[370/390] Compiling DecodeBench TokBench.swift
[371/390] Compiling DecodeBench BatchBench.swift
[372/390] Emitting module DecodeBench
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:1417:9: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
1415 | // освободили» дают одинаковые 6.9 ГБ.
1416 | let footBefore = processFootprintGB()
1417 | MLX.GPU.clearCache()
     |         |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
     |         `- note: use 'Memory.clearCache' instead
1418 | print(String(format: "footprint в конце %.2f ГБ (до clearCache %.2f)",
1419 |              processFootprintGB(), footBefore))
[373/390] Compiling DecodeBench TrainBench.swift
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:35:24: warning: capture of 'self' with non-sendable type 'FootprintSampler' in a '@Sendable' closure
 23 | // ───────────────────────────────────────────────────────────────────────
 24 |
 25 | final class FootprintSampler {
    |             `- note: class 'FootprintSampler' does not conform to the 'Sendable' protocol
 26 |     private var peak = 0.0
 27 |     private let lock = NSLock()
    :
 33 |             while true {
 34 |                 let f = processFootprintGB()
 35 |                 if f > self.guardGB {
    |                        `- warning: capture of 'self' with non-sendable type 'FootprintSampler' in a '@Sendable' closure
 36 |                     print(String(format: "ПРЕДОХРАНИТЕЛЬ: footprint %.1f ГБ выше порога %.1f — выход", f, self.guardGB))
 37 |                     fflush(stdout); exit(3)
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:85:65: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
 83 |                  + "MLX активная %.2f ГБ, footprint +%.2f ГБ",
 84 |                  L, bb.cfg.nEmbd, Date().timeIntervalSince(t), info.numAdapters,
 85 |                  Double(info.trainableParams) / 1e6, Double(GPU.activeMemory) / 1e9,
    |                                                                 |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                                                                 `- note: use 'Memory.activeMemory' instead
 86 |                  processFootprintGB() - f0))
 87 |     print("ранг \(o.rank), слои \(o.layersFrom)..<\(L), батч \(o.batch), шагов \(o.steps), "
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:106:76: warning: backward matching of the unlabeled trailing closure is deprecated; label the argument with 'onStep' to suppress this warning
104 |             cfg.lossChunkTokens = o.lossChunk
105 |             cfg.sequentialBackward = o.sequential
106 |             LoRAFinetune.run(bb, nextBatch: { (x: x, y: y) }, config: cfg) { step, l, _, _ in
    |                                                                            `- warning: backward matching of the unlabeled trailing closure is deprecated; label the argument with 'onStep' to suppress this warning
107 |                 if step == 1 {
108 |                     GPU.clearCache(); GPU.resetPeakMemory(); sampler.reset(); sw0 = swapUsedMB()
/Users/admin/builder/spi-builder-workspace/Sources/RWKVGen/LoRAFinetune.swift:209:24: note: 'run(_:nextBatch:config:isCancelled:onStep:)' declared here
207 |     /// накопление и клип — общие.
208 |     @discardableResult
209 |     public static func run(
    |                        `- note: 'run(_:nextBatch:config:isCancelled:onStep:)' declared here
210 |         _ bb: X070Backbone,
211 |         nextBatch: () -> LoRABatch,
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:108:25: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
106 |             LoRAFinetune.run(bb, nextBatch: { (x: x, y: y) }, config: cfg) { step, l, _, _ in
107 |                 if step == 1 {
108 |                     GPU.clearCache(); GPU.resetPeakMemory(); sampler.reset(); sw0 = swapUsedMB()
    |                         |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |                         `- note: use 'Memory.clearCache' instead
109 |                 }
110 |                 stamps.append(Date()); loss = l
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:113:38: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
111 |             }
112 |             let per = zip(stamps.dropFirst(), stamps).map { $0.timeIntervalSince($1) * 1e3 }
113 |             let peakMLX = Double(GPU.peakMemory) / 1e9, peakFP = sampler.take()
    |                                      |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                      `- note: use 'Memory.peakMemory' instead
114 |             let active = Double(GPU.activeMemory) / 1e9
115 |             let ms = median(per)
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:114:37: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
112 |             let per = zip(stamps.dropFirst(), stamps).map { $0.timeIntervalSince($1) * 1e3 }
113 |             let peakMLX = Double(GPU.peakMemory) / 1e9, peakFP = sampler.take()
114 |             let active = Double(GPU.activeMemory) / 1e9
    |                                     |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                                     `- note: use 'Memory.activeMemory' instead
115 |             let ms = median(per)
116 |
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:127:17: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
125 |                 return median(ts)
126 |             }
127 |             GPU.clearCache(); GPU.resetPeakMemory()
    |                 |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |                 `- note: use 'Memory.clearCache' instead
128 |             // на длинной последовательности прямой проход с логитами целиком
129 |             // сам пикует выше шага — тогда не меряем (--tb-no-forward)
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:131:38: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
129 |             // сам пикует выше шага — тогда не меряем (--tb-no-forward)
130 |             let fwdTrain = o.forward ? forward { bb(x).sum() } : 0
131 |             let fwdPeak = Double(GPU.peakMemory) / 1e9
    |                                      |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                      `- note: use 'Memory.peakMemory' instead
132 |             let fwdFrozen = o.forward ? forward { bb.withoutGradientPath { bb(x).sum() } } : 0
133 |             GPU.clearCache()
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:133:17: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
131 |             let fwdPeak = Double(GPU.peakMemory) / 1e9
132 |             let fwdFrozen = o.forward ? forward { bb.withoutGradientPath { bb(x).sum() } } : 0
133 |             GPU.clearCache()
    |                 |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |                 `- note: use 'Memory.clearCache' instead
134 |
135 |             if o.profile {
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:144:82: warning: backward matching of the unlabeled trailing closure is deprecated; label the argument with 'onStep' to suppress this warning
142 |                     let c = LoRAConfig(lr: 0, maxSteps: 4, cacheLimitGB: o.cacheLimitGB, logEvery: 1,
143 |                                        useBlockCheckpoint: ckpt)
144 |                     LoRAFinetune.run(bb, nextBatch: { (x: x, y: y) }, config: c) { _, _, _, _ in st.append(Date()) }
    |                                                                                  `- warning: backward matching of the unlabeled trailing closure is deprecated; label the argument with 'onStep' to suppress this warning
145 |                     return median(zip(st.dropFirst(), st).map { $0.timeIntervalSince($1) * 1e3 })
146 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/RWKVGen/LoRAFinetune.swift:209:24: note: 'run(_:nextBatch:config:isCancelled:onStep:)' declared here
207 |     /// накопление и клип — общие.
208 |     @discardableResult
209 |     public static func run(
    |                        `- note: 'run(_:nextBatch:config:isCancelled:onStep:)' declared here
210 |         _ bb: X070Backbone,
211 |         nextBatch: () -> LoRABatch,
[374/390] Compiling DecodeBench main.swift
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:1417:9: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
1415 | // освободили» дают одинаковые 6.9 ГБ.
1416 | let footBefore = processFootprintGB()
1417 | MLX.GPU.clearCache()
     |         |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
     |         `- note: use 'Memory.clearCache' instead
1418 | print(String(format: "footprint в конце %.2f ГБ (до clearCache %.2f)",
1419 |              processFootprintGB(), footBefore))
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:619:13: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
 617 |         bb.fuseLerp = !args.noFuseLerp
 618 |         if norm, args.nativeIn16 { bb.rwkvqNativeInputDType = .float16 }
 619 |         GPU.clearCache()
     |             |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
     |             `- note: use 'Memory.clearCache' instead
 620 |         let grown = processFootprintGB() - before
 621 |         print(String(format: "  после загрузки (%@): footprint +%.2f ГБ; MLX активная %.2f, кеш %.2f, пик %.2f ГБ",
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:622:80: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
 620 |         let grown = processFootprintGB() - before
 621 |         print(String(format: "  после загрузки (%@): footprint +%.2f ГБ; MLX активная %.2f, кеш %.2f, пик %.2f ГБ",
 622 |                      norm ? "норма" : "прежний", grown, Double(GPU.activeMemory) / 1e9,
     |                                                                    |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
     |                                                                    `- note: use 'Memory.activeMemory' instead
 623 |                      Double(GPU.cacheMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
 624 |         return (bb, grown)
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:623:33: warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
 621 |         print(String(format: "  после загрузки (%@): footprint +%.2f ГБ; MLX активная %.2f, кеш %.2f, пик %.2f ГБ",
 622 |                      norm ? "норма" : "прежний", grown, Double(GPU.activeMemory) / 1e9,
 623 |                      Double(GPU.cacheMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
     |                                 |- warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
     |                                 `- note: use 'Memory.cacheMemory' instead
 624 |         return (bb, grown)
 625 |     }
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:623:64: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
 621 |         print(String(format: "  после загрузки (%@): footprint +%.2f ГБ; MLX активная %.2f, кеш %.2f, пик %.2f ГБ",
 622 |                      norm ? "норма" : "прежний", grown, Double(GPU.activeMemory) / 1e9,
 623 |                      Double(GPU.cacheMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
     |                                                                |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
     |                                                                `- note: use 'Memory.peakMemory' instead
 624 |         return (bb, grown)
 625 |     }
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:662:51: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
 660 |     }
 661 |     print(String(format: "footprint в конце: %.2f ГБ; MLX активная %.2f, кеш %.2f, пик %.2f ГБ",
 662 |                  processFootprintGB(), Double(GPU.activeMemory) / 1e9,
     |                                                   |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
     |                                                   `- note: use 'Memory.activeMemory' instead
 663 |                  Double(GPU.cacheMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
 664 | }
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:663:29: warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
 661 |     print(String(format: "footprint в конце: %.2f ГБ; MLX активная %.2f, кеш %.2f, пик %.2f ГБ",
 662 |                  processFootprintGB(), Double(GPU.activeMemory) / 1e9,
 663 |                  Double(GPU.cacheMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
     |                             |- warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
     |                             `- note: use 'Memory.cacheMemory' instead
 664 | }
 665 |
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:663:60: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
 661 |     print(String(format: "footprint в конце: %.2f ГБ; MLX активная %.2f, кеш %.2f, пик %.2f ГБ",
 662 |                  processFootprintGB(), Double(GPU.activeMemory) / 1e9,
 663 |                  Double(GPU.cacheMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
     |                                                            |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
     |                                                            `- note: use 'Memory.peakMemory' instead
 664 | }
 665 |
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:725:9: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
 723 |         print("истина посчитана (\(tp), счёт fp32)")
 724 |     }
 725 |     GPU.clearCache()
     |         |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
     |         `- note: use 'Memory.clearCache' instead
 726 |
 727 |     // 2. точный счёт тех же квантованных весов
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:733:9: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
 731 |         for i in 0 ..< N { exact.append(logProbs(e, i)) }
 732 |     }
 733 |     GPU.clearCache()
     |         |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
     |         `- note: use 'Memory.clearCache' instead
 734 |
 735 |     // 3. норма, два плеча на одной модели
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:829:51: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
 827 |                  labels.1, median(mB), 1000 / median(mB), median(mB) / median(mA), agree, topA.count))
 828 |     print(String(format: "footprint в конце: %.2f ГБ; MLX активная %.2f, пик %.2f ГБ",
 829 |                  processFootprintGB(), Double(GPU.activeMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
     |                                                   |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
     |                                                   `- note: use 'Memory.activeMemory' instead
 830 | }
 831 |
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:829:83: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
 827 |                  labels.1, median(mB), 1000 / median(mB), median(mB) / median(mA), agree, topA.count))
 828 |     print(String(format: "footprint в конце: %.2f ГБ; MLX активная %.2f, пик %.2f ГБ",
 829 |                  processFootprintGB(), Double(GPU.activeMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
     |                                                                                   |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
     |                                                                                   `- note: use 'Memory.peakMemory' instead
 830 | }
 831 |
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:879:119: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
 877 |                      name, args.rounds, mT.isEmpty ? .nan : median(mT), mW.isEmpty ? .nan : median(mW)))
 878 |     }
 879 |     print(String(format: "footprint в конце: %.2f ГБ; MLX пик %.2f ГБ", processFootprintGB(), Double(GPU.peakMemory) / 1e9))
     |                                                                                                          |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
     |                                                                                                          `- note: use 'Memory.peakMemory' instead
 880 | }
 881 |
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:892:9: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
 890 |         : args.noNative ? try X070Backbone.load(fromRwkvq: expand(path), useNativeKernel: false)
 891 |         : try X070Backbone.load(fromRwkvq: expand(path))
 892 |     GPU.clearCache()
     |         |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
     |         `- note: use 'Memory.clearCache' instead
 893 |     print("sb6: \(bb.rwkvqBackedKeys.contains { bb.hasNativeRepack($0) } ? "родной контейнер MLX" : "K3 (ядро GEMV на шаге)")")
 894 |     print(String(format: "загрузка %.1f с; footprint +%.2f ГБ; MLX активная %.2f ГБ, пик %.2f ГБ",
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:896:29: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
 894 |     print(String(format: "загрузка %.1f с; footprint +%.2f ГБ; MLX активная %.2f ГБ, пик %.2f ГБ",
 895 |                  Date().timeIntervalSince(t0), processFootprintGB() - f0,
 896 |                  Double(GPU.activeMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
     |                             |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
     |                             `- note: use 'Memory.activeMemory' instead
 897 |     fflush(stdout)
 898 |     // префилл: первый вызов — сборка ядер, меряются следующие
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:896:61: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
 894 |     print(String(format: "загрузка %.1f с; footprint +%.2f ГБ; MLX активная %.2f ГБ, пик %.2f ГБ",
 895 |                  Date().timeIntervalSince(t0), processFootprintGB() - f0,
 896 |                  Double(GPU.activeMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
     |                                                             |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
     |                                                             `- note: use 'Memory.peakMemory' instead
 897 |     fflush(stdout)
 898 |     // префилл: первый вызов — сборка ядер, меряются следующие
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:911:52: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
 909 |     let pm = median(Array(ts.dropFirst()))
 910 |     print(String(format: "префилл T=512: первый вызов %.0f мс; далее медиана %.1f мс = %.0f ток/с; MLX пик %.2f ГБ",
 911 |                  ts[0], pm, 512e3 / pm, Double(GPU.peakMemory) / 1e9))
     |                                                    |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
     |                                                    `- note: use 'Memory.peakMemory' instead
 912 |     fflush(stdout)
 913 |     // декод: продолжение после префилла, teacher-forced, чтение argmax на каждом шаге
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:928:29: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
 926 |     print(String(format: "декод: медиана %.2f мс/ток = %.1f ток/с (раунды %@); MLX активная %.2f, пик %.2f ГБ; footprint %.2f ГБ",
 927 |                  median(ms), 1e3 / median(ms), ms.map { String(format: "%.2f", $0) }.joined(separator: " "),
 928 |                  Double(GPU.activeMemory) / 1e9, Double(GPU.peakMemory) / 1e9, processFootprintGB()))
     |                             |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
     |                             `- note: use 'Memory.activeMemory' instead
 929 |     // конвейер против синхронного жадного декода, чередованием: свободная
 930 |     // генерация от одного и того же состояния, 64 токена на раунд
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:928:61: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
 926 |     print(String(format: "декод: медиана %.2f мс/ток = %.1f ток/с (раунды %@); MLX активная %.2f, пик %.2f ГБ; footprint %.2f ГБ",
 927 |                  median(ms), 1e3 / median(ms), ms.map { String(format: "%.2f", $0) }.joined(separator: " "),
 928 |                  Double(GPU.activeMemory) / 1e9, Double(GPU.peakMemory) / 1e9, processFootprintGB()))
     |                                                             |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
     |                                                             `- note: use 'Memory.peakMemory' instead
 929 |     // конвейер против синхронного жадного декода, чередованием: свободная
 930 |     // генерация от одного и того же состояния, 64 токена на раунд
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:1053:29: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
1051 |     let dt = Date().timeIntervalSince(t)
1052 |     print(String(format: "загрузка %.2f с | MLX активная %.3f, кеш %.3f, пик %.3f ГБ | footprint +%.3f ГБ | emb %@",
1053 |                  dt, gb(GPU.activeMemory), gb(GPU.cacheMemory), gb(GPU.peakMemory),
     |                             |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
     |                             `- note: use 'Memory.activeMemory' instead
1054 |                  processFootprintGB() - f0, bb.rwkvqEmbTable == nil ? "плотный" : "сжатый (строки выборкой)"))
1055 |     // освобождённое при загрузке Metal возвращает системе не сразу
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:1053:51: warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
1051 |     let dt = Date().timeIntervalSince(t)
1052 |     print(String(format: "загрузка %.2f с | MLX активная %.3f, кеш %.3f, пик %.3f ГБ | footprint +%.3f ГБ | emb %@",
1053 |                  dt, gb(GPU.activeMemory), gb(GPU.cacheMemory), gb(GPU.peakMemory),
     |                                                   |- warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
     |                                                   `- note: use 'Memory.cacheMemory' instead
1054 |                  processFootprintGB() - f0, bb.rwkvqEmbTable == nil ? "плотный" : "сжатый (строки выборкой)"))
1055 |     // освобождённое при загрузке Metal возвращает системе не сразу
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:1053:72: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
1051 |     let dt = Date().timeIntervalSince(t)
1052 |     print(String(format: "загрузка %.2f с | MLX активная %.3f, кеш %.3f, пик %.3f ГБ | footprint +%.3f ГБ | emb %@",
1053 |                  dt, gb(GPU.activeMemory), gb(GPU.cacheMemory), gb(GPU.peakMemory),
     |                                                                        |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
     |                                                                        `- note: use 'Memory.peakMemory' instead
1054 |                  processFootprintGB() - f0, bb.rwkvqEmbTable == nil ? "плотный" : "сжатый (строки выборкой)"))
1055 |     // освобождённое при загрузке Metal возвращает системе не сразу
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:1066:9: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
1064 |     let bb = try X070Backbone.load(fromRwkvq: expand(path))
1065 |     let sc = try RwkvqSidecar.open(expand(path))
1066 |     GPU.clearCache()
     |         |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
     |         `- note: use 'Memory.clearCache' instead
1067 |     let win = try loadArrays(url: URL(fileURLWithPath: expand(args.windows)))["ids"]!
1068 |     let pre = (win[0].asArray(Int32.self) + win[4].asArray(Int32.self)).map { Int($0) }
[374/390] Write Objects.LinkFileList
[376/390] Emitting module EmbedRun
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:251:54: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
249 | print(String(format: "база: %@, L=%d D=%d; загрузка %.1f с; MLX активная %.2f ГБ, footprint +%.2f ГБ",
250 |              quantised ? ".rwkvq" : "плотная", base.cfg.nLayer, base.cfg.nEmbd,
251 |              Date().timeIntervalSince(t), Double(GPU.activeMemory) / 1e9, footprintGB() - f0))
    |                                                      |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                                                      `- note: use 'Memory.activeMemory' instead
252 |
253 | /// Строки задачи: отложенные — с конца, обучающие — с начала (не пересекаются).
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:285:71: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
283 |             let unpacked = base.unpackTopLayers(args.unpack ?? n)
284 |             print(String(format: "развёрнуто в плотные: %d весов верхних %d слоёв; MLX активная %.2f ГБ",
285 |                          unpacked.count, args.unpack ?? n, Double(GPU.activeMemory) / 1e9))
    |                                                                       |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                                                                       `- note: use 'Memory.activeMemory' instead
286 |         }
287 |         mode = .topLayers(n)
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:432:102: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
430 |             let v = base.withoutGradientPath { arm.1() }
431 |             eval(v)
432 |             if round > 0 { times[i].append(Date().timeIntervalSince(t0)); peaks[i].append(Double(GPU.peakMemory) / 1e9) }
    |                                                                                                      |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                                                                                      `- note: use 'Memory.peakMemory' instead
433 |             if reference == nil { reference = v }
434 |             else if round == 0 {
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:544:29: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
542 |     // Разность пика и активной памяти до фазы — её временное потребление.
543 |     var stepNo = 0
544 |     var before = Double(GPU.activeMemory) / 1e9
    |                             |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                             `- note: use 'Memory.activeMemory' instead
545 |     SequentialBody.probe = { name in
546 |         if name == "batch" { stepNo += 1 }
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:547:33: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
545 |     SequentialBody.probe = { name in
546 |         if name == "batch" { stepNo += 1 }
547 |         let active = Double(GPU.activeMemory) / 1e9, peak = Double(GPU.peakMemory) / 1e9
    |                                 |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                                 `- note: use 'Memory.activeMemory' instead
548 |         if stepNo == 3 {       // третий шаг: установившийся (моменты Adam заведены, ядра собраны)
549 |             print(String(format: "  ПРИБОР %-10@ активная %.3f  пик за фазу %.3f  (+%.3f к началу фазы)  кэш %.3f",
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:547:72: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
545 |     SequentialBody.probe = { name in
546 |         if name == "batch" { stepNo += 1 }
547 |         let active = Double(GPU.activeMemory) / 1e9, peak = Double(GPU.peakMemory) / 1e9
    |                                                                        |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                                                        `- note: use 'Memory.peakMemory' instead
548 |         if stepNo == 3 {       // третий шаг: установившийся (моменты Adam заведены, ядра собраны)
549 |             print(String(format: "  ПРИБОР %-10@ активная %.3f  пик за фазу %.3f  (+%.3f к началу фазы)  кэш %.3f",
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:550:84: warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
548 |         if stepNo == 3 {       // третий шаг: установившийся (моменты Adam заведены, ядра собраны)
549 |             print(String(format: "  ПРИБОР %-10@ активная %.3f  пик за фазу %.3f  (+%.3f к началу фазы)  кэш %.3f",
550 |                          name as NSString, active, peak, peak - before, Double(GPU.cacheMemory) / 1e9))
    |                                                                                    |- warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
    |                                                                                    `- note: use 'Memory.cacheMemory' instead
551 |         }
552 |         before = active
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:589:47: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
587 |             if s.step > 2 {
588 |                 abTime[arm].append(Date().timeIntervalSince(last))
589 |                 abPeak[arm].append(Double(GPU.peakMemory) / 1e9)
    |                                               |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                               `- note: use 'Memory.peakMemory' instead
590 |             }
591 |             SequentialBody.pipelined = s.step % 2 == 1
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:615:29: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
613 |     print(String(format: "после обучения: %@ | %d шагов за %.1f с (%.2f с/шаг) | пик MLX %.2f ГБ, footprint +%.2f ГБ",
614 |                  r.after?.description ?? "—", r.steps, r.seconds, r.seconds / Double(max(1, r.steps)),
615 |                  Double(GPU.peakMemory) / 1e9, footprintGB() - f0))
    |                             |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                             `- note: use 'Memory.peakMemory' instead
616 |     report["before"] = r.before?.headline ?? Double.nan
617 |     report["after"] = r.after?.headline ?? Double.nan
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:619:42: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
617 |     report["after"] = r.after?.headline ?? Double.nan
618 |     report["final_loss"] = Double(r.finalLoss); report["train_seconds"] = r.seconds
619 |     report["train_peak_gb"] = Double(GPU.peakMemory) / 1e9
    |                                          |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                          `- note: use 'Memory.peakMemory' instead
620 |     if args.compareFolded { compareFolded(stage) }
621 |
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:794:29: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
792 |     print(String(format: "оценка: %@ | %.1f с (%.1f мс на строку) | пик MLX %.2f ГБ, пик footprint оценки %.2f ГБ",
793 |                  before.description, evalSeconds, evalSeconds * 1e3 / Double(heldOut.count),
794 |                  Double(GPU.peakMemory) / 1e9, watch.take()))
    |                             |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                             `- note: use 'Memory.peakMemory' instead
795 |     report["before"] = before.headline; report["eval_seconds"] = evalSeconds
796 |     report["eval_peak_gb"] = Double(GPU.peakMemory) / 1e9
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:796:41: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
794 |                  Double(GPU.peakMemory) / 1e9, watch.take()))
795 |     report["before"] = before.headline; report["eval_seconds"] = evalSeconds
796 |     report["eval_peak_gb"] = Double(GPU.peakMemory) / 1e9
    |                                         |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                         `- note: use 'Memory.peakMemory' instead
797 |     if args.compareFolded { compareFolded(stage) }
798 | }
[377/390] Compiling EmbedRun main.swift
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:251:54: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
249 | print(String(format: "база: %@, L=%d D=%d; загрузка %.1f с; MLX активная %.2f ГБ, footprint +%.2f ГБ",
250 |              quantised ? ".rwkvq" : "плотная", base.cfg.nLayer, base.cfg.nEmbd,
251 |              Date().timeIntervalSince(t), Double(GPU.activeMemory) / 1e9, footprintGB() - f0))
    |                                                      |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                                                      `- note: use 'Memory.activeMemory' instead
252 |
253 | /// Строки задачи: отложенные — с конца, обучающие — с начала (не пересекаются).
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:285:71: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
283 |             let unpacked = base.unpackTopLayers(args.unpack ?? n)
284 |             print(String(format: "развёрнуто в плотные: %d весов верхних %d слоёв; MLX активная %.2f ГБ",
285 |                          unpacked.count, args.unpack ?? n, Double(GPU.activeMemory) / 1e9))
    |                                                                       |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                                                                       `- note: use 'Memory.activeMemory' instead
286 |         }
287 |         mode = .topLayers(n)
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:432:102: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
430 |             let v = base.withoutGradientPath { arm.1() }
431 |             eval(v)
432 |             if round > 0 { times[i].append(Date().timeIntervalSince(t0)); peaks[i].append(Double(GPU.peakMemory) / 1e9) }
    |                                                                                                      |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                                                                                      `- note: use 'Memory.peakMemory' instead
433 |             if reference == nil { reference = v }
434 |             else if round == 0 {
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:544:29: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
542 |     // Разность пика и активной памяти до фазы — её временное потребление.
543 |     var stepNo = 0
544 |     var before = Double(GPU.activeMemory) / 1e9
    |                             |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                             `- note: use 'Memory.activeMemory' instead
545 |     SequentialBody.probe = { name in
546 |         if name == "batch" { stepNo += 1 }
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:547:33: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
545 |     SequentialBody.probe = { name in
546 |         if name == "batch" { stepNo += 1 }
547 |         let active = Double(GPU.activeMemory) / 1e9, peak = Double(GPU.peakMemory) / 1e9
    |                                 |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                                 `- note: use 'Memory.activeMemory' instead
548 |         if stepNo == 3 {       // третий шаг: установившийся (моменты Adam заведены, ядра собраны)
549 |             print(String(format: "  ПРИБОР %-10@ активная %.3f  пик за фазу %.3f  (+%.3f к началу фазы)  кэш %.3f",
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:547:72: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
545 |     SequentialBody.probe = { name in
546 |         if name == "batch" { stepNo += 1 }
547 |         let active = Double(GPU.activeMemory) / 1e9, peak = Double(GPU.peakMemory) / 1e9
    |                                                                        |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                                                        `- note: use 'Memory.peakMemory' instead
548 |         if stepNo == 3 {       // третий шаг: установившийся (моменты Adam заведены, ядра собраны)
549 |             print(String(format: "  ПРИБОР %-10@ активная %.3f  пик за фазу %.3f  (+%.3f к началу фазы)  кэш %.3f",
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:550:84: warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
548 |         if stepNo == 3 {       // третий шаг: установившийся (моменты Adam заведены, ядра собраны)
549 |             print(String(format: "  ПРИБОР %-10@ активная %.3f  пик за фазу %.3f  (+%.3f к началу фазы)  кэш %.3f",
550 |                          name as NSString, active, peak, peak - before, Double(GPU.cacheMemory) / 1e9))
    |                                                                                    |- warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
    |                                                                                    `- note: use 'Memory.cacheMemory' instead
551 |         }
552 |         before = active
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:589:47: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
587 |             if s.step > 2 {
588 |                 abTime[arm].append(Date().timeIntervalSince(last))
589 |                 abPeak[arm].append(Double(GPU.peakMemory) / 1e9)
    |                                               |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                               `- note: use 'Memory.peakMemory' instead
590 |             }
591 |             SequentialBody.pipelined = s.step % 2 == 1
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:615:29: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
613 |     print(String(format: "после обучения: %@ | %d шагов за %.1f с (%.2f с/шаг) | пик MLX %.2f ГБ, footprint +%.2f ГБ",
614 |                  r.after?.description ?? "—", r.steps, r.seconds, r.seconds / Double(max(1, r.steps)),
615 |                  Double(GPU.peakMemory) / 1e9, footprintGB() - f0))
    |                             |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                             `- note: use 'Memory.peakMemory' instead
616 |     report["before"] = r.before?.headline ?? Double.nan
617 |     report["after"] = r.after?.headline ?? Double.nan
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:619:42: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
617 |     report["after"] = r.after?.headline ?? Double.nan
618 |     report["final_loss"] = Double(r.finalLoss); report["train_seconds"] = r.seconds
619 |     report["train_peak_gb"] = Double(GPU.peakMemory) / 1e9
    |                                          |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                          `- note: use 'Memory.peakMemory' instead
620 |     if args.compareFolded { compareFolded(stage) }
621 |
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:794:29: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
792 |     print(String(format: "оценка: %@ | %.1f с (%.1f мс на строку) | пик MLX %.2f ГБ, пик footprint оценки %.2f ГБ",
793 |                  before.description, evalSeconds, evalSeconds * 1e3 / Double(heldOut.count),
794 |                  Double(GPU.peakMemory) / 1e9, watch.take()))
    |                             |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                             `- note: use 'Memory.peakMemory' instead
795 |     report["before"] = before.headline; report["eval_seconds"] = evalSeconds
796 |     report["eval_peak_gb"] = Double(GPU.peakMemory) / 1e9
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:796:41: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
794 |                  Double(GPU.peakMemory) / 1e9, watch.take()))
795 |     report["before"] = before.headline; report["eval_seconds"] = evalSeconds
796 |     report["eval_peak_gb"] = Double(GPU.peakMemory) / 1e9
    |                                         |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                         `- note: use 'Memory.peakMemory' instead
797 |     if args.compareFolded { compareFolded(stage) }
798 | }
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:500:80: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
498 |                 maxTokens: maxTokens, dedupeCandidates: st.dedupeEvaluationPool, foldInstructions: arm == 1)
499 |             let dt = Date().timeIntervalSince(t0)
500 |             if round > 0 { times[arm].append(dt); peaks[arm].append(Double(GPU.peakMemory) / 1e9) }
    |                                                                                |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                                                                `- note: use 'Memory.peakMemory' instead
501 |             if let prev = metrics[arm], prev != r || ranks[arm] != row {
502 |                 print("ВНИМАНИЕ: плечо «\(names[arm])» не повторилось от круга к кругу")
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:458:11: error: main actor-isolated var 'model' can not be referenced from a nonisolated context
294 |     print("--state-scope: all | queries"); exit(2)
295 | }
296 | var model = EmbeddingModel(backbone: base,
    |     `- note: var declared here
297 |                            head: EmbeddingHead(dim: base.cfg.nEmbd, seed: args.seed),
298 |                            stateScope: stateScope)
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    |           `- error: main actor-isolated var 'model' can not be referenced from a nonisolated context
459 |     let anchors = st.heldOut.map { String($0.anchor.prefix(st.maxChars)) }
460 |     // --compare-max-tokens: обрезка в сравнении своя (веса обучены при --max-tokens)
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:497:24: error: main actor-isolated var 'model' can not be referenced from a nonisolated context
294 |     print("--state-scope: all | queries"); exit(2)
295 | }
296 | var model = EmbeddingModel(backbone: base,
    |     `- note: var declared here
297 |                            head: EmbeddingHead(dim: base.cfg.nEmbd, seed: args.seed),
298 |                            stateScope: stateScope)
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
495 |             let t0 = Date()
496 |             let r = EmbeddingMetrics.evaluateRetrieval(
497 |                 model: model, tokenizer: tok, rows: st.heldOut, maxChars: st.maxChars,
    |                        `- error: main actor-isolated var 'model' can not be referenced from a nonisolated context
498 |                 maxTokens: maxTokens, dedupeCandidates: st.dedupeEvaluationPool, foldInstructions: arm == 1)
499 |             let dt = Date().timeIntervalSince(t0)
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:528:5: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
526 |                      med(peaks[0]), med(peaks[1]), folds.count, folds.tokens))
527 |     }
528 |     report["cmp_inline"] = metrics[0]!.mrr; report["cmp_folded"] = metrics[1]!.mrr
    |     `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
529 |     report["per_row_cmp_inline"] = ranks[0]; report["per_row_cmp_folded"] = ranks[1]
530 |     report["cmp_inline_seconds"] = times[0]; report["cmp_folded_seconds"] = times[1]
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:528:45: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
526 |                      med(peaks[0]), med(peaks[1]), folds.count, folds.tokens))
527 |     }
528 |     report["cmp_inline"] = metrics[0]!.mrr; report["cmp_folded"] = metrics[1]!.mrr
    |                                             `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
529 |     report["per_row_cmp_inline"] = ranks[0]; report["per_row_cmp_folded"] = ranks[1]
530 |     report["cmp_inline_seconds"] = times[0]; report["cmp_folded_seconds"] = times[1]
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:529:5: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
527 |     }
528 |     report["cmp_inline"] = metrics[0]!.mrr; report["cmp_folded"] = metrics[1]!.mrr
529 |     report["per_row_cmp_inline"] = ranks[0]; report["per_row_cmp_folded"] = ranks[1]
    |     `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
530 |     report["cmp_inline_seconds"] = times[0]; report["cmp_folded_seconds"] = times[1]
531 |     report["cmp_inline_peak_gb"] = peaks[0]; report["cmp_folded_peak_gb"] = peaks[1]
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:529:46: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
527 |     }
528 |     report["cmp_inline"] = metrics[0]!.mrr; report["cmp_folded"] = metrics[1]!.mrr
529 |     report["per_row_cmp_inline"] = ranks[0]; report["per_row_cmp_folded"] = ranks[1]
    |                                              `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
530 |     report["cmp_inline_seconds"] = times[0]; report["cmp_folded_seconds"] = times[1]
531 |     report["cmp_inline_peak_gb"] = peaks[0]; report["cmp_folded_peak_gb"] = peaks[1]
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:530:5: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
528 |     report["cmp_inline"] = metrics[0]!.mrr; report["cmp_folded"] = metrics[1]!.mrr
529 |     report["per_row_cmp_inline"] = ranks[0]; report["per_row_cmp_folded"] = ranks[1]
530 |     report["cmp_inline_seconds"] = times[0]; report["cmp_folded_seconds"] = times[1]
    |     `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
531 |     report["cmp_inline_peak_gb"] = peaks[0]; report["cmp_folded_peak_gb"] = peaks[1]
532 |     report["cmp_rows_with_instruction"] = withInstr; report["cmp_distinct_instructions"] = prefixTok.count
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:530:46: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
528 |     report["cmp_inline"] = metrics[0]!.mrr; report["cmp_folded"] = metrics[1]!.mrr
529 |     report["per_row_cmp_inline"] = ranks[0]; report["per_row_cmp_folded"] = ranks[1]
530 |     report["cmp_inline_seconds"] = times[0]; report["cmp_folded_seconds"] = times[1]
    |                                              `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
531 |     report["cmp_inline_peak_gb"] = peaks[0]; report["cmp_folded_peak_gb"] = peaks[1]
532 |     report["cmp_rows_with_instruction"] = withInstr; report["cmp_distinct_instructions"] = prefixTok.count
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:531:5: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
529 |     report["per_row_cmp_inline"] = ranks[0]; report["per_row_cmp_folded"] = ranks[1]
530 |     report["cmp_inline_seconds"] = times[0]; report["cmp_folded_seconds"] = times[1]
531 |     report["cmp_inline_peak_gb"] = peaks[0]; report["cmp_folded_peak_gb"] = peaks[1]
    |     `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
532 |     report["cmp_rows_with_instruction"] = withInstr; report["cmp_distinct_instructions"] = prefixTok.count
533 |     report["cmp_fold_tokens"] = foldTok; report["cmp_inline_tokens"] = inlineTok; report["cmp_tail_tokens"] = tailTok
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:531:46: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
529 |     report["per_row_cmp_inline"] = ranks[0]; report["per_row_cmp_folded"] = ranks[1]
530 |     report["cmp_inline_seconds"] = times[0]; report["cmp_folded_seconds"] = times[1]
531 |     report["cmp_inline_peak_gb"] = peaks[0]; report["cmp_folded_peak_gb"] = peaks[1]
    |                                              `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
532 |     report["cmp_rows_with_instruction"] = withInstr; report["cmp_distinct_instructions"] = prefixTok.count
533 |     report["cmp_fold_tokens"] = foldTok; report["cmp_inline_tokens"] = inlineTok; report["cmp_tail_tokens"] = tailTok
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:532:5: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
530 |     report["cmp_inline_seconds"] = times[0]; report["cmp_folded_seconds"] = times[1]
531 |     report["cmp_inline_peak_gb"] = peaks[0]; report["cmp_folded_peak_gb"] = peaks[1]
532 |     report["cmp_rows_with_instruction"] = withInstr; report["cmp_distinct_instructions"] = prefixTok.count
    |     `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
533 |     report["cmp_fold_tokens"] = foldTok; report["cmp_inline_tokens"] = inlineTok; report["cmp_tail_tokens"] = tailTok
534 |     report["cmp_inline_cut"] = inlineCut; report["cmp_tail_cut"] = tailCut; report["cmp_cut_rows"] = cutRows
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:532:54: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
530 |     report["cmp_inline_seconds"] = times[0]; report["cmp_folded_seconds"] = times[1]
531 |     report["cmp_inline_peak_gb"] = peaks[0]; report["cmp_folded_peak_gb"] = peaks[1]
532 |     report["cmp_rows_with_instruction"] = withInstr; report["cmp_distinct_instructions"] = prefixTok.count
    |                                                      `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
533 |     report["cmp_fold_tokens"] = foldTok; report["cmp_inline_tokens"] = inlineTok; report["cmp_tail_tokens"] = tailTok
534 |     report["cmp_inline_cut"] = inlineCut; report["cmp_tail_cut"] = tailCut; report["cmp_cut_rows"] = cutRows
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:533:5: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
531 |     report["cmp_inline_peak_gb"] = peaks[0]; report["cmp_folded_peak_gb"] = peaks[1]
532 |     report["cmp_rows_with_instruction"] = withInstr; report["cmp_distinct_instructions"] = prefixTok.count
533 |     report["cmp_fold_tokens"] = foldTok; report["cmp_inline_tokens"] = inlineTok; report["cmp_tail_tokens"] = tailTok
    |     `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
534 |     report["cmp_inline_cut"] = inlineCut; report["cmp_tail_cut"] = tailCut; report["cmp_cut_rows"] = cutRows
535 |     report["cmp_rows_differ"] = differ.count; report["cmp_rows_differ_uncut"] = differUncut.count
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:533:42: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
531 |     report["cmp_inline_peak_gb"] = peaks[0]; report["cmp_folded_peak_gb"] = peaks[1]
532 |     report["cmp_rows_with_instruction"] = withInstr; report["cmp_distinct_instructions"] = prefixTok.count
533 |     report["cmp_fold_tokens"] = foldTok; report["cmp_inline_tokens"] = inlineTok; report["cmp_tail_tokens"] = tailTok
    |                                          `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
534 |     report["cmp_inline_cut"] = inlineCut; report["cmp_tail_cut"] = tailCut; report["cmp_cut_rows"] = cutRows
535 |     report["cmp_rows_differ"] = differ.count; report["cmp_rows_differ_uncut"] = differUncut.count
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:533:83: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
531 |     report["cmp_inline_peak_gb"] = peaks[0]; report["cmp_folded_peak_gb"] = peaks[1]
532 |     report["cmp_rows_with_instruction"] = withInstr; report["cmp_distinct_instructions"] = prefixTok.count
533 |     report["cmp_fold_tokens"] = foldTok; report["cmp_inline_tokens"] = inlineTok; report["cmp_tail_tokens"] = tailTok
    |                                                                                   `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
534 |     report["cmp_inline_cut"] = inlineCut; report["cmp_tail_cut"] = tailCut; report["cmp_cut_rows"] = cutRows
535 |     report["cmp_rows_differ"] = differ.count; report["cmp_rows_differ_uncut"] = differUncut.count
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:534:5: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
532 |     report["cmp_rows_with_instruction"] = withInstr; report["cmp_distinct_instructions"] = prefixTok.count
533 |     report["cmp_fold_tokens"] = foldTok; report["cmp_inline_tokens"] = inlineTok; report["cmp_tail_tokens"] = tailTok
534 |     report["cmp_inline_cut"] = inlineCut; report["cmp_tail_cut"] = tailCut; report["cmp_cut_rows"] = cutRows
    |     `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
535 |     report["cmp_rows_differ"] = differ.count; report["cmp_rows_differ_uncut"] = differUncut.count
536 |     report["cmp_max_tokens"] = maxTokens ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:534:43: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
532 |     report["cmp_rows_with_instruction"] = withInstr; report["cmp_distinct_instructions"] = prefixTok.count
533 |     report["cmp_fold_tokens"] = foldTok; report["cmp_inline_tokens"] = inlineTok; report["cmp_tail_tokens"] = tailTok
534 |     report["cmp_inline_cut"] = inlineCut; report["cmp_tail_cut"] = tailCut; report["cmp_cut_rows"] = cutRows
    |                                           `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
535 |     report["cmp_rows_differ"] = differ.count; report["cmp_rows_differ_uncut"] = differUncut.count
536 |     report["cmp_max_tokens"] = maxTokens ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:534:77: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
532 |     report["cmp_rows_with_instruction"] = withInstr; report["cmp_distinct_instructions"] = prefixTok.count
533 |     report["cmp_fold_tokens"] = foldTok; report["cmp_inline_tokens"] = inlineTok; report["cmp_tail_tokens"] = tailTok
534 |     report["cmp_inline_cut"] = inlineCut; report["cmp_tail_cut"] = tailCut; report["cmp_cut_rows"] = cutRows
    |                                                                             `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
535 |     report["cmp_rows_differ"] = differ.count; report["cmp_rows_differ_uncut"] = differUncut.count
536 |     report["cmp_max_tokens"] = maxTokens ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:535:5: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
533 |     report["cmp_fold_tokens"] = foldTok; report["cmp_inline_tokens"] = inlineTok; report["cmp_tail_tokens"] = tailTok
534 |     report["cmp_inline_cut"] = inlineCut; report["cmp_tail_cut"] = tailCut; report["cmp_cut_rows"] = cutRows
535 |     report["cmp_rows_differ"] = differ.count; report["cmp_rows_differ_uncut"] = differUncut.count
    |     `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
536 |     report["cmp_max_tokens"] = maxTokens ?? 0
537 |     report["cmp_cache_limit_gb"] = Double(MLX.Memory.cacheLimit) / 1e9
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:535:47: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
533 |     report["cmp_fold_tokens"] = foldTok; report["cmp_inline_tokens"] = inlineTok; report["cmp_tail_tokens"] = tailTok
534 |     report["cmp_inline_cut"] = inlineCut; report["cmp_tail_cut"] = tailCut; report["cmp_cut_rows"] = cutRows
535 |     report["cmp_rows_differ"] = differ.count; report["cmp_rows_differ_uncut"] = differUncut.count
    |                                               `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
536 |     report["cmp_max_tokens"] = maxTokens ?? 0
537 |     report["cmp_cache_limit_gb"] = Double(MLX.Memory.cacheLimit) / 1e9
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:536:5: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
534 |     report["cmp_inline_cut"] = inlineCut; report["cmp_tail_cut"] = tailCut; report["cmp_cut_rows"] = cutRows
535 |     report["cmp_rows_differ"] = differ.count; report["cmp_rows_differ_uncut"] = differUncut.count
536 |     report["cmp_max_tokens"] = maxTokens ?? 0
    |     `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
537 |     report["cmp_cache_limit_gb"] = Double(MLX.Memory.cacheLimit) / 1e9
538 | }
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:537:5: error: main actor-isolated var 'report' can not be mutated from a nonisolated context
395 |
396 | applyRunSettings(&stage)
397 | var report: [String: Any] = ["model": args.model, "mode": args.mode, "task": task.rawValue,
    |     `- note: mutation of this var is only permitted within the actor
398 |                              "train": train.count, "eval": heldOut.count, "steps": args.steps,
399 |                              "batch": args.batch, "max_tokens": args.maxTokens, "quantised": quantised]
    :
454 | /// (свёртка режет только хвост, запрос не теряется) — они считаются отдельно.
455 | /// Поштучные ранги обоих плеч — в отчёт (для парного бутстрэпа по сидам).
456 | func compareFolded(_ st: EmbeddingStage) {
    |      `- note: add '@MainActor' to make global function 'compareFolded' part of global actor 'MainActor'
457 |     guard st.task == .retrieval else { print("--compare-folded: только retrieval"); exit(2) }
458 |     guard model.pooling == .last else { print("--compare-folded: нужен пулинг .last"); exit(2) }
    :
535 |     report["cmp_rows_differ"] = differ.count; report["cmp_rows_differ_uncut"] = differUncut.count
536 |     report["cmp_max_tokens"] = maxTokens ?? 0
537 |     report["cmp_cache_limit_gb"] = Double(MLX.Memory.cacheLimit) / 1e9
    |     `- error: main actor-isolated var 'report' can not be mutated from a nonisolated context
538 | }
539 |
[377/390] Linking decode-bench
[377/390] Linking gen-run
Fetching https://github.com/ml-explore/mlx-swift
[1/17756] Fetching mlx-swift
Fetched https://github.com/ml-explore/mlx-swift from cache (2.42s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.4 (0.60s)
Fetching https://github.com/apple/swift-numerics from cache
Fetched https://github.com/apple/swift-numerics from cache (1.02s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.55s)
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.31.4
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/13] Write swift-version-2F0A5646E1D333AE.txt
[2/24] Compiling RealModule Real.swift
[3/24] Compiling RealModule RealFunctions.swift
[4/25] Compiling RealModule Float80+Real.swift
[5/25] Compiling RealModule ElementaryFunctions.swift
[6/25] Compiling RealModule Float16+Real.swift
[7/25] Compiling RealModule AugmentedArithmetic.swift
[8/25] Compiling RealModule Float+Real.swift
[9/25] Compiling RealModule AlgebraicField.swift
[10/25] Compiling RealModule ApproximateEquality.swift
[11/25] Compiling RealModule Double+Real.swift
[12/25] Compiling RealModule RelaxedArithmetic.swift
[13/25] Emitting module RealModule
[14/36] Compiling ComplexModule Complex+IntegerLiteral.swift
[15/37] Compiling ComplexModule Complex+Hashable.swift
[16/37] Compiling ComplexModule Complex+Numeric.swift
[17/37] Compiling ComplexModule Complex+Codable.swift
[18/37] Compiling ComplexModule Complex.swift
[19/37] Compiling ComplexModule Polar.swift
[20/37] Compiling ComplexModule Scale.swift
[21/37] Compiling ComplexModule Complex+StringConvertible.swift
[22/37] Emitting module ComplexModule
[23/37] Compiling ComplexModule Complex+ElementaryFunctions.swift
[24/37] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[25/37] Compiling ComplexModule Complex+AlgebraicField.swift
[26/39] Emitting module Numerics
[27/39] Compiling Numerics Numerics.swift
[28/76] Compiling MLX Transforms+CompileOverloads.swift
[29/76] Compiling MLX Transforms+Eval.swift
[30/76] Compiling MLX Transforms+Grad.swift
[31/76] Compiling MLX Transforms+Internal.swift
[32/79] Compiling MLX ArrayAt.swift
[33/79] Compiling MLX Cmlx+Util.swift
[34/79] Compiling MLX DType.swift
[35/79] Compiling MLX Device.swift
[36/79] Emitting module MLX
[37/79] Compiling MLX MLXArray+Normalizer.swift
[38/79] Compiling MLX MLXArray+Ops.swift
[39/79] Compiling MLX MLXArray.swift
[40/79] Compiling MLX MLXCustomFunction.swift
[41/79] Compiling MLX Ops+Array.swift
[42/79] Compiling MLX Ops.swift
[43/79] Compiling MLX ParameterTypes.swift
[44/79] Compiling MLX Protocols.swift
[45/79] Compiling MLX Transforms+Vmap.swift
[46/79] Compiling MLX Transforms.swift
[47/79] Compiling MLX WiredMemory.swift
[48/79] Compiling MLX Foundation+Util.swift
[49/79] Compiling MLX GPU+Metal.swift
[50/79] Compiling MLX IO.swift
[51/79] Compiling MLX Linalg.swift
[52/79] Compiling MLX Random.swift
[53/79] Compiling MLX State.swift
[54/79] Compiling MLX Stream.swift
[55/79] Compiling MLX Transforms+Compile.swift
[56/79] Compiling MLX ErrorHandler.swift
[57/79] Compiling MLX Export.swift
[58/79] Compiling MLX FFT.swift
[59/79] Compiling MLX Factory.swift
[60/79] Compiling MLX MLXFast.swift
[61/79] Compiling MLX MLXFastKernel.swift
[62/79] Compiling MLX Memory.swift
[63/79] Compiling MLX Nested.swift
[64/79] Compiling MLX MLXArray+Bytes.swift
[65/79] Compiling MLX MLXArray+Indexing.swift
[66/79] Compiling MLX MLXArray+Init.swift
[67/79] Compiling MLX MLXArray+Metal.swift
[68/102] Emitting module MLXRandom
[69/102] Compiling MLXRandom Random.swift
[70/102] Compiling MLXFast MLXFast.swift
[71/102] Emitting module MLXFast
[72/102] Compiling MLXFast MLXFastKernel.swift
[73/119] Compiling RWKVQuant RwkvqSymRows.swift
[74/119] Compiling RWKVKernel WKV7Step.swift
[75/119] Compiling RWKVKernel WKV7.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7.swift:11:35: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
  9 |
 10 | // Кэш скомпилированных ядер по числу голов H (как _fwd_cache в Python)
 11 | private var fwdKernelCache: [Int: MLXFastKernel] = [:]
    |                                   |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                   `- note: use 'MLXFast.MLXFastKernel' instead
 12 |
 13 | // Тело forward-ядра — ДОСЛОВНО как _get_fwd в model/wkv7.py.
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7.swift:15:43: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 13 | // Тело forward-ядра — ДОСЛОВНО как _get_fwd в model/wkv7.py.
 14 | // Сигнатура (имена буферов, *_shape) генерируется автоматически.
 15 | private func wkv7ForwardKernel(H: Int) -> MLXFastKernel {
    |                                           |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                           `- note: use 'MLXFast.MLXFastKernel' instead
 16 |     if let k = fwdKernelCache[H] { return k }
 17 |
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7.swift:183:55: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
181 | nonisolated(unsafe) public private(set) var wkv7SequenceLaunches = 0
182 |
183 | nonisolated(unsafe) private var seqKernelCache: [Int: MLXFastKernel] = [:]
    |                                                       |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                                       `- note: use 'MLXFast.MLXFastKernel' instead
184 |
185 | private func wkv7SequenceKernel(H: Int) -> MLXFastKernel {
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7.swift:185:44: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
183 | nonisolated(unsafe) private var seqKernelCache: [Int: MLXFastKernel] = [:]
184 |
185 | private func wkv7SequenceKernel(H: Int) -> MLXFastKernel {
    |                                            |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                            `- note: use 'MLXFast.MLXFastKernel' instead
186 |     if let k = seqKernelCache[H] { return k }
187 |
[76/119] Compiling RWKVKernel WKV7DecodeKernels.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7DecodeKernels.swift:25:36: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 23 | // ───────────────────────────────────────────────────────────────────────
 24 |
 25 | private var stepKernelCache: [Int: MLXFastKernel] = [:]
    |                                    |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                    `- note: use 'MLXFast.MLXFastKernel' instead
 26 | private var tailKernelCache: [String: MLXFastKernel] = [:]
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7DecodeKernels.swift:26:39: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 24 |
 25 | private var stepKernelCache: [Int: MLXFastKernel] = [:]
 26 | private var tailKernelCache: [String: MLXFastKernel] = [:]
    |                                       |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                       `- note: use 'MLXFast.MLXFastKernel' instead
 27 |
 28 | /// Один шаг рекуррентности на голову. Арифметика и порядок суммирования —
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7DecodeKernels.swift:33:40: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 31 | ///   h'   = w[dk]·h[dv,dk] + v[dv]·k[dk] + sa·b[dk]
 32 | ///   out  = Σ_dk h'[dv,dk]·r[dk]
 33 | private func wkv7StepKernel(H: Int) -> MLXFastKernel {
    |                                        |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                        `- note: use 'MLXFast.MLXFastKernel' instead
 34 |     if let k = stepKernelCache[H] { return k }
 35 |     let header = """
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7DecodeKernels.swift:114:15: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
112 |     let D = H * S
113 |     let key = "\(H)_\(S)_\(eps)"
114 |     let kern: MLXFastKernel
    |               |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |               `- note: use 'MLXFast.MLXFastKernel' instead
115 |     if let k = tailKernelCache[key] {
116 |         kern = k
[77/119] Compiling RWKVKernel WKV7Reference.swift
[78/119] Compiling RWKVKernel Ablation.swift
[79/119] Compiling RWKVKernel WKV7Train.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7Train.swift:23:36: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 21 | // ───────────────────────────────────────────────────────────────────────
 22 |
 23 | private var ckptFwdCache: [String: MLXFastKernel] = [:]
    |                                    |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                    `- note: use 'MLXFast.MLXFastKernel' instead
 24 | private var ckptBwdCache: [String: MLXFastKernel] = [:]
 25 |
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7Train.swift:24:36: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 22 |
 23 | private var ckptFwdCache: [String: MLXFastKernel] = [:]
 24 | private var ckptBwdCache: [String: MLXFastKernel] = [:]
    |                                    |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                    `- note: use 'MLXFast.MLXFastKernel' instead
 25 |
 26 | private func ckptFwdKernel(H: Int, T: Int) -> MLXFastKernel {
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7Train.swift:26:47: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 24 | private var ckptBwdCache: [String: MLXFastKernel] = [:]
 25 |
 26 | private func ckptFwdKernel(H: Int, T: Int) -> MLXFastKernel {
    |                                               |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                               `- note: use 'MLXFast.MLXFastKernel' instead
 27 |     let key = "\(H)_\(T)"
 28 |     if let k = ckptFwdCache[key] { return k }
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7Train.swift:99:47: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 97 | }
 98 |
 99 | private func ckptBwdKernel(H: Int, T: Int) -> MLXFastKernel {
    |                                               |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                               `- note: use 'MLXFast.MLXFastKernel' instead
100 |     let key = "\(H)_\(T)"
101 |     if let k = ckptBwdCache[key] { return k }
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7Train.swift:207:37: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
205 | }
206 |
207 | private var ckptBwd2Cache: [String: MLXFastKernel] = [:]
    |                                     |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                     `- note: use 'MLXFast.MLXFastKernel' instead
208 |
209 | /// Скалярное произведение четырьмя независимыми аккумуляторами (цепочка
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7Train.swift:234:49: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
232 | /// Математика та же, порядок сложения другой: с прежним ядром сходится до
233 | /// ~1e-5 (fp32). Память threadgroup: 9 × 64 float = 2304 байта.
234 | private func ckptBwdKernelV2(H: Int, T: Int) -> MLXFastKernel {
    |                                                 |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                                 `- note: use 'MLXFast.MLXFastKernel' instead
235 |     let key = "\(H)_\(T)"
236 |     if let k = ckptBwd2Cache[key] { return k }
[80/119] Emitting module RWKVKernel
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7.swift:11:35: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
  9 |
 10 | // Кэш скомпилированных ядер по числу голов H (как _fwd_cache в Python)
 11 | private var fwdKernelCache: [Int: MLXFastKernel] = [:]
    |                                   |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                   `- note: use 'MLXFast.MLXFastKernel' instead
 12 |
 13 | // Тело forward-ядра — ДОСЛОВНО как _get_fwd в model/wkv7.py.
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7.swift:15:43: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 13 | // Тело forward-ядра — ДОСЛОВНО как _get_fwd в model/wkv7.py.
 14 | // Сигнатура (имена буферов, *_shape) генерируется автоматически.
 15 | private func wkv7ForwardKernel(H: Int) -> MLXFastKernel {
    |                                           |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                           `- note: use 'MLXFast.MLXFastKernel' instead
 16 |     if let k = fwdKernelCache[H] { return k }
 17 |
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7.swift:183:55: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
181 | nonisolated(unsafe) public private(set) var wkv7SequenceLaunches = 0
182 |
183 | nonisolated(unsafe) private var seqKernelCache: [Int: MLXFastKernel] = [:]
    |                                                       |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                                       `- note: use 'MLXFast.MLXFastKernel' instead
184 |
185 | private func wkv7SequenceKernel(H: Int) -> MLXFastKernel {
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7.swift:185:44: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
183 | nonisolated(unsafe) private var seqKernelCache: [Int: MLXFastKernel] = [:]
184 |
185 | private func wkv7SequenceKernel(H: Int) -> MLXFastKernel {
    |                                            |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                            `- note: use 'MLXFast.MLXFastKernel' instead
186 |     if let k = seqKernelCache[H] { return k }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7DecodeKernels.swift:25:36: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 23 | // ───────────────────────────────────────────────────────────────────────
 24 |
 25 | private var stepKernelCache: [Int: MLXFastKernel] = [:]
    |                                    |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                    `- note: use 'MLXFast.MLXFastKernel' instead
 26 | private var tailKernelCache: [String: MLXFastKernel] = [:]
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7DecodeKernels.swift:26:39: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 24 |
 25 | private var stepKernelCache: [Int: MLXFastKernel] = [:]
 26 | private var tailKernelCache: [String: MLXFastKernel] = [:]
    |                                       |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                       `- note: use 'MLXFast.MLXFastKernel' instead
 27 |
 28 | /// Один шаг рекуррентности на голову. Арифметика и порядок суммирования —
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7DecodeKernels.swift:33:40: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 31 | ///   h'   = w[dk]·h[dv,dk] + v[dv]·k[dk] + sa·b[dk]
 32 | ///   out  = Σ_dk h'[dv,dk]·r[dk]
 33 | private func wkv7StepKernel(H: Int) -> MLXFastKernel {
    |                                        |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                        `- note: use 'MLXFast.MLXFastKernel' instead
 34 |     if let k = stepKernelCache[H] { return k }
 35 |     let header = """
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7Train.swift:23:36: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 21 | // ───────────────────────────────────────────────────────────────────────
 22 |
 23 | private var ckptFwdCache: [String: MLXFastKernel] = [:]
    |                                    |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                    `- note: use 'MLXFast.MLXFastKernel' instead
 24 | private var ckptBwdCache: [String: MLXFastKernel] = [:]
 25 |
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7Train.swift:24:36: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 22 |
 23 | private var ckptFwdCache: [String: MLXFastKernel] = [:]
 24 | private var ckptBwdCache: [String: MLXFastKernel] = [:]
    |                                    |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                    `- note: use 'MLXFast.MLXFastKernel' instead
 25 |
 26 | private func ckptFwdKernel(H: Int, T: Int) -> MLXFastKernel {
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7Train.swift:26:47: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 24 | private var ckptBwdCache: [String: MLXFastKernel] = [:]
 25 |
 26 | private func ckptFwdKernel(H: Int, T: Int) -> MLXFastKernel {
    |                                               |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                               `- note: use 'MLXFast.MLXFastKernel' instead
 27 |     let key = "\(H)_\(T)"
 28 |     if let k = ckptFwdCache[key] { return k }
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7Train.swift:99:47: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 97 | }
 98 |
 99 | private func ckptBwdKernel(H: Int, T: Int) -> MLXFastKernel {
    |                                               |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                               `- note: use 'MLXFast.MLXFastKernel' instead
100 |     let key = "\(H)_\(T)"
101 |     if let k = ckptBwdCache[key] { return k }
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7Train.swift:207:37: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
205 | }
206 |
207 | private var ckptBwd2Cache: [String: MLXFastKernel] = [:]
    |                                     |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                     `- note: use 'MLXFast.MLXFastKernel' instead
208 |
209 | /// Скалярное произведение четырьмя независимыми аккумуляторами (цепочка
/Users/admin/builder/spi-builder-workspace/Sources/RWKVKernel/WKV7Train.swift:234:49: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
232 | /// Математика та же, порядок сложения другой: с прежним ядром сходится до
233 | /// ~1e-5 (fp32). Память threadgroup: 9 × 64 float = 2304 байта.
234 | private func ckptBwdKernelV2(H: Int, T: Int) -> MLXFastKernel {
    |                                                 |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                                 `- note: use 'MLXFast.MLXFastKernel' instead
235 |     let key = "\(H)_\(T)"
236 |     if let k = ckptBwd2Cache[key] { return k }
[81/119] Compiling RWKVQuant RwkvqSymGEMV.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqSymGEMV.swift:53:46: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 51 | }
 52 |
 53 | private var symGemvKernelCache: [SymGemvKey: MLXFastKernel] = [:]
    |                                              |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                              `- note: use 'MLXFast.MLXFastKernel' instead
 54 |
 55 | private func symGemvHeader(IN: Int, OUT: Int, NN: Int, outPer: Int) -> String {
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqSymGEMV.swift:90:76: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 88 | /// outPer == OUT это даёт xi = 0, и индексация вырождается в обычную.
 89 | private func symGemvKernel(inFeatures IN: Int, outFeatures OUT: Int,
 90 |                            bits: Int, rows NN: Int, outPer: Int? = nil) -> MLXFastKernel {
    |                                                                            |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                                                            `- note: use 'MLXFast.MLXFastKernel' instead
 91 |     let per = outPer ?? OUT
 92 |     precondition(OUT % per == 0 && per % symGemvRS == 0,
[82/119] Compiling RWKVQuant RwkvqSpill.swift
[83/119] Compiling RWKVQuant RwkvqSidecar.swift
[84/119] Compiling RWKVQuant RwkvqSb6GEMV.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqSb6GEMV.swift:53:46: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 51 | }
 52 |
 53 | private var sb6GemvKernelCache: [Sb6GemvKey: MLXFastKernel] = [:]
    |                                              |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                              `- note: use 'MLXFast.MLXFastKernel' instead
 54 |
 55 | /// Битплоскость одним умножением: ниббл → 4 байта. Порядок регистров
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqSb6GEMV.swift:70:57: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 68 |
 69 | private func sb6GemvKernel(inFeatures IN: Int, outFeatures OUT: Int, xbits: Int,
 70 |                            nsg NSG: Int, rs RS: Int) -> MLXFastKernel {
    |                                                         |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                                         `- note: use 'MLXFast.MLXFastKernel' instead
 71 |     let key = Sb6GemvKey(inFeatures: IN, outFeatures: OUT, xbits: xbits, nsg: NSG, rs: RS)
 72 |     if let k = sb6GemvKernelCache[key] { return k }
[85/119] Compiling RWKVQuant RwkvqFullConvert.swift
[86/119] Compiling RWKVQuant RwkvqDequant.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqDequant.swift:65:46: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 63 | }
 64 |
 65 | private var dequantKernelCache: [DequantKey: MLXFastKernel] = [:]
    |                                              |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                              `- note: use 'MLXFast.MLXFastKernel' instead
 66 |
 67 | private func dequantKernel(inFeatures IN: Int, outFeatures OUT: Int,
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqDequant.swift:69:45: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 67 | private func dequantKernel(inFeatures IN: Int, outFeatures OUT: Int,
 68 |                            xbits: Int, superBlock gwSb: Int,
 69 |                            dtype: DType) -> MLXFastKernel {
    |                                             |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                             `- note: use 'MLXFast.MLXFastKernel' instead
 70 |     let outType = metalTypeName(dtype)
 71 |     let key = DequantKey(inFeatures: IN, outFeatures: OUT,
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqDequant.swift:309:52: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
307 | }
308 |
309 | private var symDequantKernelCache: [SymDequantKey: MLXFastKernel] = [:]
    |                                                    |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                                    `- note: use 'MLXFast.MLXFastKernel' instead
310 |
311 | private func symMetalTypeName(_ d: DType) -> String {
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqDequant.swift:321:59: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
319 |
320 | private func symDequantKernel(inFeatures IN: Int, outFeatures OUT: Int,
321 |                               bits: Int, dtype: DType) -> MLXFastKernel {
    |                                                           |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                                           `- note: use 'MLXFast.MLXFastKernel' instead
322 |     let T = symMetalTypeName(dtype)
323 |     let key = SymDequantKey(inFeatures: IN, outFeatures: OUT, bits: bits, dtype: T)
[87/119] Compiling RWKVQuant RwkvqNative.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqNative.swift:39:16: warning: stored property 'wq' of 'Sendable'-conforming struct 'RwkvqNativeWeight' has non-sendable type 'MLXArray'; this is an error in the Swift 6 language mode
 37 | /// Вес в родном контейнере MLX: то, что принимает `quantizedMM`.
 38 | public struct RwkvqNativeWeight: Sendable {
 39 |     public let wq: MLXArray          // uint32 [OUT, NB·bits]
    |                `- warning: stored property 'wq' of 'Sendable'-conforming struct 'RwkvqNativeWeight' has non-sendable type 'MLXArray'; this is an error in the Swift 6 language mode
 40 |     public let scales: MLXArray      // fp16 (fp32 у тензоров с зажатым scale) [OUT, NB]
 41 |     public let biases: MLXArray      // того же типа, что scales             [OUT, NB]
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:7:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
  5 | import Numerics
  6 |
  7 | public final class MLXArray {
    |                    `- note: class 'MLXArray' does not conform to the 'Sendable' protocol
  8 |
  9 |     /// Internal pointer to the mlx-c wrapper on `mlx::core::array`, used with `Cmlx` interop.
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqNative.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
  1 | import Foundation
  2 | import MLX
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
  3 |
  4 | // ───────────────────────────────────────────────────────────────────────
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqNative.swift:40:16: warning: stored property 'scales' of 'Sendable'-conforming struct 'RwkvqNativeWeight' has non-sendable type 'MLXArray'; this is an error in the Swift 6 language mode
 38 | public struct RwkvqNativeWeight: Sendable {
 39 |     public let wq: MLXArray          // uint32 [OUT, NB·bits]
 40 |     public let scales: MLXArray      // fp16 (fp32 у тензоров с зажатым scale) [OUT, NB]
    |                `- warning: stored property 'scales' of 'Sendable'-conforming struct 'RwkvqNativeWeight' has non-sendable type 'MLXArray'; this is an error in the Swift 6 language mode
 41 |     public let biases: MLXArray      // того же типа, что scales             [OUT, NB]
 42 |     public let bits: Int
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:7:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
  5 | import Numerics
  6 |
  7 | public final class MLXArray {
    |                    `- note: class 'MLXArray' does not conform to the 'Sendable' protocol
  8 |
  9 |     /// Internal pointer to the mlx-c wrapper on `mlx::core::array`, used with `Cmlx` interop.
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqNative.swift:41:16: warning: stored property 'biases' of 'Sendable'-conforming struct 'RwkvqNativeWeight' has non-sendable type 'MLXArray'; this is an error in the Swift 6 language mode
 39 |     public let wq: MLXArray          // uint32 [OUT, NB·bits]
 40 |     public let scales: MLXArray      // fp16 (fp32 у тензоров с зажатым scale) [OUT, NB]
 41 |     public let biases: MLXArray      // того же типа, что scales             [OUT, NB]
    |                `- warning: stored property 'biases' of 'Sendable'-conforming struct 'RwkvqNativeWeight' has non-sendable type 'MLXArray'; this is an error in the Swift 6 language mode
 42 |     public let bits: Int
 43 |     public let outFeatures: Int
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:7:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
  5 | import Numerics
  6 |
  7 | public final class MLXArray {
    |                    `- note: class 'MLXArray' does not conform to the 'Sendable' protocol
  8 |
  9 |     /// Internal pointer to the mlx-c wrapper on `mlx::core::array`, used with `Cmlx` interop.
[88/119] Emitting module RWKVQuant
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqDequant.swift:65:46: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 63 | }
 64 |
 65 | private var dequantKernelCache: [DequantKey: MLXFastKernel] = [:]
    |                                              |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                              `- note: use 'MLXFast.MLXFastKernel' instead
 66 |
 67 | private func dequantKernel(inFeatures IN: Int, outFeatures OUT: Int,
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqDequant.swift:69:45: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 67 | private func dequantKernel(inFeatures IN: Int, outFeatures OUT: Int,
 68 |                            xbits: Int, superBlock gwSb: Int,
 69 |                            dtype: DType) -> MLXFastKernel {
    |                                             |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                             `- note: use 'MLXFast.MLXFastKernel' instead
 70 |     let outType = metalTypeName(dtype)
 71 |     let key = DequantKey(inFeatures: IN, outFeatures: OUT,
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqDequant.swift:309:52: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
307 | }
308 |
309 | private var symDequantKernelCache: [SymDequantKey: MLXFastKernel] = [:]
    |                                                    |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                                    `- note: use 'MLXFast.MLXFastKernel' instead
310 |
311 | private func symMetalTypeName(_ d: DType) -> String {
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqDequant.swift:321:59: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
319 |
320 | private func symDequantKernel(inFeatures IN: Int, outFeatures OUT: Int,
321 |                               bits: Int, dtype: DType) -> MLXFastKernel {
    |                                                           |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                                           `- note: use 'MLXFast.MLXFastKernel' instead
322 |     let T = symMetalTypeName(dtype)
323 |     let key = SymDequantKey(inFeatures: IN, outFeatures: OUT, bits: bits, dtype: T)
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqNative.swift:39:16: warning: stored property 'wq' of 'Sendable'-conforming struct 'RwkvqNativeWeight' has non-sendable type 'MLXArray'; this is an error in the Swift 6 language mode
 37 | /// Вес в родном контейнере MLX: то, что принимает `quantizedMM`.
 38 | public struct RwkvqNativeWeight: Sendable {
 39 |     public let wq: MLXArray          // uint32 [OUT, NB·bits]
    |                `- warning: stored property 'wq' of 'Sendable'-conforming struct 'RwkvqNativeWeight' has non-sendable type 'MLXArray'; this is an error in the Swift 6 language mode
 40 |     public let scales: MLXArray      // fp16 (fp32 у тензоров с зажатым scale) [OUT, NB]
 41 |     public let biases: MLXArray      // того же типа, что scales             [OUT, NB]
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:7:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
  5 | import Numerics
  6 |
  7 | public final class MLXArray {
    |                    `- note: class 'MLXArray' does not conform to the 'Sendable' protocol
  8 |
  9 |     /// Internal pointer to the mlx-c wrapper on `mlx::core::array`, used with `Cmlx` interop.
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqNative.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
  1 | import Foundation
  2 | import MLX
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
  3 |
  4 | // ───────────────────────────────────────────────────────────────────────
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqNative.swift:40:16: warning: stored property 'scales' of 'Sendable'-conforming struct 'RwkvqNativeWeight' has non-sendable type 'MLXArray'; this is an error in the Swift 6 language mode
 38 | public struct RwkvqNativeWeight: Sendable {
 39 |     public let wq: MLXArray          // uint32 [OUT, NB·bits]
 40 |     public let scales: MLXArray      // fp16 (fp32 у тензоров с зажатым scale) [OUT, NB]
    |                `- warning: stored property 'scales' of 'Sendable'-conforming struct 'RwkvqNativeWeight' has non-sendable type 'MLXArray'; this is an error in the Swift 6 language mode
 41 |     public let biases: MLXArray      // того же типа, что scales             [OUT, NB]
 42 |     public let bits: Int
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:7:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
  5 | import Numerics
  6 |
  7 | public final class MLXArray {
    |                    `- note: class 'MLXArray' does not conform to the 'Sendable' protocol
  8 |
  9 |     /// Internal pointer to the mlx-c wrapper on `mlx::core::array`, used with `Cmlx` interop.
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqNative.swift:41:16: warning: stored property 'biases' of 'Sendable'-conforming struct 'RwkvqNativeWeight' has non-sendable type 'MLXArray'; this is an error in the Swift 6 language mode
 39 |     public let wq: MLXArray          // uint32 [OUT, NB·bits]
 40 |     public let scales: MLXArray      // fp16 (fp32 у тензоров с зажатым scale) [OUT, NB]
 41 |     public let biases: MLXArray      // того же типа, что scales             [OUT, NB]
    |                `- warning: stored property 'biases' of 'Sendable'-conforming struct 'RwkvqNativeWeight' has non-sendable type 'MLXArray'; this is an error in the Swift 6 language mode
 42 |     public let bits: Int
 43 |     public let outFeatures: Int
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:7:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
  5 | import Numerics
  6 |
  7 | public final class MLXArray {
    |                    `- note: class 'MLXArray' does not conform to the 'Sendable' protocol
  8 |
  9 |     /// Internal pointer to the mlx-c wrapper on `mlx::core::array`, used with `Cmlx` interop.
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqSb6GEMV.swift:53:46: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 51 | }
 52 |
 53 | private var sb6GemvKernelCache: [Sb6GemvKey: MLXFastKernel] = [:]
    |                                              |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                              `- note: use 'MLXFast.MLXFastKernel' instead
 54 |
 55 | /// Битплоскость одним умножением: ниббл → 4 байта. Порядок регистров
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqSb6GEMV.swift:70:57: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 68 |
 69 | private func sb6GemvKernel(inFeatures IN: Int, outFeatures OUT: Int, xbits: Int,
 70 |                            nsg NSG: Int, rs RS: Int) -> MLXFastKernel {
    |                                                         |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                                         `- note: use 'MLXFast.MLXFastKernel' instead
 71 |     let key = Sb6GemvKey(inFeatures: IN, outFeatures: OUT, xbits: xbits, nsg: NSG, rs: RS)
 72 |     if let k = sb6GemvKernelCache[key] { return k }
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqSymGEMV.swift:53:46: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 51 | }
 52 |
 53 | private var symGemvKernelCache: [SymGemvKey: MLXFastKernel] = [:]
    |                                              |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                              `- note: use 'MLXFast.MLXFastKernel' instead
 54 |
 55 | private func symGemvHeader(IN: Int, OUT: Int, NN: Int, outPer: Int) -> String {
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqSymGEMV.swift:90:76: warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
 88 | /// outPer == OUT это даёт xi = 0, и индексация вырождается в обычную.
 89 | private func symGemvKernel(inFeatures IN: Int, outFeatures OUT: Int,
 90 |                            bits: Int, rows NN: Int, outPer: Int? = nil) -> MLXFastKernel {
    |                                                                            |- warning: 'MLXFastKernel' is deprecated: renamed to 'MLXFast.MLXFastKernel'
    |                                                                            `- note: use 'MLXFast.MLXFastKernel' instead
 91 |     let per = outPer ?? OUT
 92 |     precondition(OUT % per == 0 && per % symGemvRS == 0,
[89/119] Compiling RWKVQuant RwkvqFile.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVQuant/RwkvqFile.swift:289:39: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
287 |         // на 1.5B COMPRESSION это +0.2 ГБ footprint в момент окончания.
288 |         func releaseTransients(_ bytes: Int) {
289 |             if bytes >= 8 << 20 { GPU.clearCache() }
    |                                       |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |                                       `- note: use 'Memory.clearCache' instead
290 |         }
291 |
[90/119] Compiling MLXNN Recurrent.swift
[91/119] Compiling MLXNN Transformer.swift
[92/119] Compiling MLXNN Losses.swift
[93/119] Compiling MLXNN Module.swift
[94/119] Compiling MLXNN Normalization.swift
[95/119] Compiling MLXNN Pooling.swift
[96/119] Compiling MLXNN PositionalEncoding.swift
[97/119] Compiling MLXNN Quantized.swift
[98/119] Compiling MLXNN Embedding.swift
[99/119] Compiling MLXNN Linear.swift
[100/119] Compiling MLXNN ConvolutionTransposed.swift
[101/119] Compiling MLXNN Dropout.swift
[102/119] Compiling MLXNN Upsample.swift
[103/119] Compiling MLXNN Activations.swift
[104/119] Compiling MLXNN Cache.swift
[105/120] Compiling MLXNN ValueAndGrad.swift
[106/120] Compiling MLXNN Containers.swift
[107/120] Compiling MLXNN Convolution.swift
[108/120] Emitting module MLXNN
[109/122] Compiling MLXOptimizers Optimizers.swift
[110/122] Emitting module MLXOptimizers
[111/150] Emitting module RWKVGen
[112/153] Compiling RWKVGen Dialogue.swift
[113/153] Compiling RWKVGen GPUSampler.swift
[114/153] Compiling RWKVGen Generate.swift
[115/153] Compiling RWKVGen TrainableSet.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVGen/Training/Trainer.swift:84:21: warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
 82 |
 83 |         if cfg.cacheLimitGB > 0 {
 84 |             MLX.GPU.set(cacheLimit: Int(cfg.cacheLimitGB * 1e9))
    |                     `- warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
 85 |         }
 86 |         // Конвейер — настройка ЭТОГО запуска, а не процесса: включается на
[116/153] Compiling RWKVGen Trainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVGen/Training/Trainer.swift:84:21: warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
 82 |
 83 |         if cfg.cacheLimitGB > 0 {
 84 |             MLX.GPU.set(cacheLimit: Int(cfg.cacheLimitGB * 1e9))
    |                     `- warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
 85 |         }
 86 |         // Конвейер — настройка ЭТОГО запуска, а не процесса: включается на
[117/153] Compiling RWKVGen TrainingConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVGen/Training/Trainer.swift:84:21: warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
 82 |
 83 |         if cfg.cacheLimitGB > 0 {
 84 |             MLX.GPU.set(cacheLimit: Int(cfg.cacheLimitGB * 1e9))
    |                     `- warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
 85 |         }
 86 |         // Конвейер — настройка ЭТОГО запуска, а не процесса: включается на
[118/153] Compiling RWKVGen RWKVBlock.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVGen/RwkvqStandaloneLoad.swift:142:13: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
140 |         // исходные буферы плотных параметров отпущены — вернуть их из кеша
141 |         // MLX до того, как начнёт расти база
142 |         GPU.clearCache()
    |             |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |             `- note: use 'Memory.clearCache' instead
143 |
144 |         let cfg = X070Config(nLayer: manifest.nLayer, nEmbd: manifest.nEmbd,
/Users/admin/builder/spi-builder-workspace/Sources/RWKVGen/RwkvqStandaloneLoad.swift:214:13: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
212 |         // после загрузки против 1.7 ГБ после первого декода.
213 |         eval(Array(bb.w.values))
214 |         GPU.clearCache()
    |             |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |             `- note: use 'Memory.clearCache' instead
215 |
216 |         // короткий параллельный проход — ядрами GEMV; порог по раскладке базы
[119/153] Compiling RWKVGen RwkvqBase.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVGen/RwkvqStandaloneLoad.swift:142:13: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
140 |         // исходные буферы плотных параметров отпущены — вернуть их из кеша
141 |         // MLX до того, как начнёт расти база
142 |         GPU.clearCache()
    |             |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |             `- note: use 'Memory.clearCache' instead
143 |
144 |         let cfg = X070Config(nLayer: manifest.nLayer, nEmbd: manifest.nEmbd,
/Users/admin/builder/spi-builder-workspace/Sources/RWKVGen/RwkvqStandaloneLoad.swift:214:13: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
212 |         // после загрузки против 1.7 ГБ после первого декода.
213 |         eval(Array(bb.w.values))
214 |         GPU.clearCache()
    |             |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |             `- note: use 'Memory.clearCache' instead
215 |
216 |         // короткий параллельный проход — ядрами GEMV; порог по раскладке базы
[120/153] Compiling RWKVGen RwkvqStandaloneLoad.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVGen/RwkvqStandaloneLoad.swift:142:13: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
140 |         // исходные буферы плотных параметров отпущены — вернуть их из кеша
141 |         // MLX до того, как начнёт расти база
142 |         GPU.clearCache()
    |             |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |             `- note: use 'Memory.clearCache' instead
143 |
144 |         let cfg = X070Config(nLayer: manifest.nLayer, nEmbd: manifest.nEmbd,
/Users/admin/builder/spi-builder-workspace/Sources/RWKVGen/RwkvqStandaloneLoad.swift:214:13: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
212 |         // после загрузки против 1.7 ГБ после первого декода.
213 |         eval(Array(bb.w.values))
214 |         GPU.clearCache()
    |             |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |             `- note: use 'Memory.clearCache' instead
215 |
216 |         // короткий параллельный проход — ядрами GEMV; порог по раскладке базы
[121/153] Compiling RWKVGen Sampling.swift
[122/153] Compiling RWKVGen Tokenizer.swift
[123/153] Compiling RWKVGen TopLayerFinetune.swift
[124/153] Compiling RWKVGen Pretrain.swift
[125/153] Compiling RWKVGen SequentialBackward.swift
[126/153] Compiling RWKVGen TokenStream.swift
[127/153] Compiling RWKVGen BPETokenizer.swift
[128/153] Compiling RWKVGen BatchGenerate.swift
[129/153] Compiling RWKVGen Checkpoint.swift
[130/153] Compiling RWKVGen InitialState.swift
[131/153] Compiling RWKVGen InitialStateBank.swift
[132/153] Compiling RWKVGen LoRA.swift
[133/153] Compiling RWKVGen X070Init.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVGen/WeightStreaming.swift:118:13: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
116 |         arrays = [:]
117 |         releaseAllStreamedWeights()
118 |         GPU.clearCache()
    |             |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |             `- note: use 'Memory.clearCache' instead
119 |     }
120 |
[134/153] Compiling RWKVGen WeightStreaming.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVGen/WeightStreaming.swift:118:13: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
116 |         arrays = [:]
117 |         releaseAllStreamedWeights()
118 |         GPU.clearCache()
    |             |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |             `- note: use 'Memory.clearCache' instead
119 |     }
120 |
[135/153] Compiling RWKVGen WorldTokenizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVGen/WeightStreaming.swift:118:13: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
116 |         arrays = [:]
117 |         releaseAllStreamedWeights()
118 |         GPU.clearCache()
    |             |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |             `- note: use 'Memory.clearCache' instead
119 |     }
120 |
[136/153] Compiling RWKVGen LoRAFinetune.swift
[137/153] Compiling RWKVGen PEFTStateFile.swift
[138/153] Compiling RWKVGen RWKVBatchState.swift
[139/153] Compiling RWKVGen X070Backbone.swift
[140/153] Compiling RWKVGen X070Generation.swift
[141/153] Compiling RWKVGen X070PartialFinetune.swift
[142/182] Compiling RWKVEmbedding GradCache.swift
[143/182] Compiling RWKVEmbedding EmbeddingTrainable.swift
[144/183] Compiling RWKVRerank RerankSweep.swift
[145/184] Compiling RWKVRerank RerankLoss.swift
[146/184] Compiling RWKVRerank RerankMetrics.swift
[147/184] Compiling RWKVEmbedding EmbeddingObjective.swift
[148/184] Compiling RWKVRerank Reranker.swift
[149/184] Compiling RWKVRerank RerankerHead.swift
[150/184] Compiling RWKVRerank RerankInference.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVRerank/RerankInference.swift:342:21: warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
340 |         let enc = config.encode
341 |         if enc.cacheLimitGB > 0 {
342 |             MLX.GPU.set(cacheLimit: Int(enc.cacheLimitGB * 1e9))
    |                     `- warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
343 |         }
344 |         var parts: [RWKVBatchState] = []
/Users/admin/builder/spi-builder-workspace/Sources/RWKVRerank/RerankInference.swift:392:21: warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
390 |         let enc = config.encode
391 |         if enc.cacheLimitGB > 0 {
392 |             MLX.GPU.set(cacheLimit: Int(enc.cacheLimitGB * 1e9))
    |                     `- warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
393 |         }
394 |
[151/184] Compiling RWKVEmbedding InstructionCache.swift
[152/184] Compiling RWKVEmbedding EmbeddingFinetune.swift
[153/184] Compiling RWKVEmbedding EmbeddingMetrics.swift
[154/184] Compiling RWKVEmbedding EmbeddingDataset.swift
[155/184] Emitting module RWKVEmbedding
[156/184] Compiling RWKVEmbedding EmbeddingCheckpoint.swift
[157/184] Compiling RWKVRerank RerankData.swift
[158/184] Compiling RWKVRerank RerankEncode.swift
[159/184] Compiling RWKVEmbedding EmbeddingCurriculum.swift
[160/184] Compiling RWKVRerank RerankTrainable.swift
[161/184] Compiling RWKVRerank RerankTraining.swift
[162/184] Emitting module RWKVRerank
/Users/admin/builder/spi-builder-workspace/Sources/RWKVRerank/RerankEncode.swift:264:21: warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
262 |         precondition(!samples.isEmpty, "нечего кодировать")
263 |         if config.cacheLimitGB > 0 {
264 |             MLX.GPU.set(cacheLimit: Int(config.cacheLimitGB * 1e9))
    |                     `- warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
265 |         }
266 |         let nCand = samples[0].docIds.count
/Users/admin/builder/spi-builder-workspace/Sources/RWKVRerank/RerankEncode.swift:264:21: warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
262 |         precondition(!samples.isEmpty, "нечего кодировать")
263 |         if config.cacheLimitGB > 0 {
264 |             MLX.GPU.set(cacheLimit: Int(config.cacheLimitGB * 1e9))
    |                     `- warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
265 |         }
266 |         let nCand = samples[0].docIds.count
/Users/admin/builder/spi-builder-workspace/Sources/RWKVRerank/RerankEncode.swift:264:21: warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
262 |         precondition(!samples.isEmpty, "нечего кодировать")
263 |         if config.cacheLimitGB > 0 {
264 |             MLX.GPU.set(cacheLimit: Int(config.cacheLimitGB * 1e9))
    |                     `- warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
265 |         }
266 |         let nCand = samples[0].docIds.count
[165/186] Compiling RWKVRerank StateCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/RWKVRerank/StateCache.swift:456:14: warning: 'asData(noCopy:disambiguate:)' is deprecated: use asData(acccess: .copy)
454 |         // а не обёртку MLXArrayData.
455 |         let payload = (dtype == .float16 ? f32.asType(.float16) : f32)
456 |             .asData(disambiguate: true)
    |              `- warning: 'asData(noCopy:disambiguate:)' is deprecated: use asData(acccess: .copy)
457 |         payload.withUnsafeBytes { src in
458 |             for (i, r) in rows.enumerated() {
[166/189] Emitting module GenRun
/Users/admin/builder/spi-builder-workspace/Sources/GenRun/main.swift:664:21: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
662 |                 // промпт растёт с каждым ходом: без очистки кэш MLX держит буферы под каждую длину
663 |                 // (0.4B: пик 10–13 ГБ и +3 ГБ свопа за 4 плеча, 01.11); на числа не влияет
664 |                 GPU.clearCache()
    |                     |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |                     `- note: use 'Memory.clearCache' instead
665 |                 return text
666 |             }
/Users/admin/builder/spi-builder-workspace/Sources/GenRun/main.swift:698:13: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
696 |         let r = base.generate(prompt: tok.encode(prompt), config: cfg, tokenizer: tok, state: &state)
697 |         answers.append(r.text.trimmingCharacters(in: .whitespacesAndNewlines))
698 |         GPU.clearCache()          // то же для --questions разной длины (на числа не влияет)
    |             |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |             `- note: use 'Memory.clearCache' instead
699 |     }
700 |     print("\n[\(qi)] \(q)")
[167/189] Compiling GenRun main.swift
/Users/admin/builder/spi-builder-workspace/Sources/GenRun/main.swift:664:21: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
662 |                 // промпт растёт с каждым ходом: без очистки кэш MLX держит буферы под каждую длину
663 |                 // (0.4B: пик 10–13 ГБ и +3 ГБ свопа за 4 плеча, 01.11); на числа не влияет
664 |                 GPU.clearCache()
    |                     |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |                     `- note: use 'Memory.clearCache' instead
665 |                 return text
666 |             }
/Users/admin/builder/spi-builder-workspace/Sources/GenRun/main.swift:698:13: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
696 |         let r = base.generate(prompt: tok.encode(prompt), config: cfg, tokenizer: tok, state: &state)
697 |         answers.append(r.text.trimmingCharacters(in: .whitespacesAndNewlines))
698 |         GPU.clearCache()          // то же для --questions разной длины (на числа не влияет)
    |             |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |             `- note: use 'Memory.clearCache' instead
699 |     }
700 |     print("\n[\(qi)] \(q)")
/Users/admin/builder/spi-builder-workspace/Sources/GenRun/main.swift:399:17: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
397 |                                   tokenizer: tok, state: &state)
398 |             let a = r.text.trimmingCharacters(in: .whitespacesAndNewlines)
399 |             GPU.clearCache()      // длины вопросов разные: без очистки кэш MLX копит буферы (01.11: пик 12.3 ГБ на статьях Lenta)
    |                 |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |                 `- note: use 'Memory.clearCache' instead
400 |             total[kind, default: 0] += 1
401 |             let ok: Bool
[168/189] Compiling DecodeBench TokBench.swift
[169/189] Compiling DecodeBench TrainBench.swift
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:85:65: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
 83 |                  + "MLX активная %.2f ГБ, footprint +%.2f ГБ",
 84 |                  L, bb.cfg.nEmbd, Date().timeIntervalSince(t), info.numAdapters,
 85 |                  Double(info.trainableParams) / 1e6, Double(GPU.activeMemory) / 1e9,
    |                                                                 |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                                                                 `- note: use 'Memory.activeMemory' instead
 86 |                  processFootprintGB() - f0))
 87 |     print("ранг \(o.rank), слои \(o.layersFrom)..<\(L), батч \(o.batch), шагов \(o.steps), "
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:106:76: warning: backward matching of the unlabeled trailing closure is deprecated; label the argument with 'onStep' to suppress this warning
104 |             cfg.lossChunkTokens = o.lossChunk
105 |             cfg.sequentialBackward = o.sequential
106 |             LoRAFinetune.run(bb, nextBatch: { (x: x, y: y) }, config: cfg) { step, l, _, _ in
    |                                                                            `- warning: backward matching of the unlabeled trailing closure is deprecated; label the argument with 'onStep' to suppress this warning
107 |                 if step == 1 {
108 |                     GPU.clearCache(); GPU.resetPeakMemory(); sampler.reset(); sw0 = swapUsedMB()
/Users/admin/builder/spi-builder-workspace/Sources/RWKVGen/LoRAFinetune.swift:209:24: note: 'run(_:nextBatch:config:isCancelled:onStep:)' declared here
207 |     /// накопление и клип — общие.
208 |     @discardableResult
209 |     public static func run(
    |                        `- note: 'run(_:nextBatch:config:isCancelled:onStep:)' declared here
210 |         _ bb: X070Backbone,
211 |         nextBatch: () -> LoRABatch,
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:108:25: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
106 |             LoRAFinetune.run(bb, nextBatch: { (x: x, y: y) }, config: cfg) { step, l, _, _ in
107 |                 if step == 1 {
108 |                     GPU.clearCache(); GPU.resetPeakMemory(); sampler.reset(); sw0 = swapUsedMB()
    |                         |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |                         `- note: use 'Memory.clearCache' instead
109 |                 }
110 |                 stamps.append(Date()); loss = l
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:113:38: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
111 |             }
112 |             let per = zip(stamps.dropFirst(), stamps).map { $0.timeIntervalSince($1) * 1e3 }
113 |             let peakMLX = Double(GPU.peakMemory) / 1e9, peakFP = sampler.take()
    |                                      |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                      `- note: use 'Memory.peakMemory' instead
114 |             let active = Double(GPU.activeMemory) / 1e9
115 |             let ms = median(per)
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:114:37: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
112 |             let per = zip(stamps.dropFirst(), stamps).map { $0.timeIntervalSince($1) * 1e3 }
113 |             let peakMLX = Double(GPU.peakMemory) / 1e9, peakFP = sampler.take()
114 |             let active = Double(GPU.activeMemory) / 1e9
    |                                     |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                                     `- note: use 'Memory.activeMemory' instead
115 |             let ms = median(per)
116 |
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:127:17: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
125 |                 return median(ts)
126 |             }
127 |             GPU.clearCache(); GPU.resetPeakMemory()
    |                 |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |                 `- note: use 'Memory.clearCache' instead
128 |             // на длинной последовательности прямой проход с логитами целиком
129 |             // сам пикует выше шага — тогда не меряем (--tb-no-forward)
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:131:38: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
129 |             // сам пикует выше шага — тогда не меряем (--tb-no-forward)
130 |             let fwdTrain = o.forward ? forward { bb(x).sum() } : 0
131 |             let fwdPeak = Double(GPU.peakMemory) / 1e9
    |                                      |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                      `- note: use 'Memory.peakMemory' instead
132 |             let fwdFrozen = o.forward ? forward { bb.withoutGradientPath { bb(x).sum() } } : 0
133 |             GPU.clearCache()
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:133:17: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
131 |             let fwdPeak = Double(GPU.peakMemory) / 1e9
132 |             let fwdFrozen = o.forward ? forward { bb.withoutGradientPath { bb(x).sum() } } : 0
133 |             GPU.clearCache()
    |                 |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
    |                 `- note: use 'Memory.clearCache' instead
134 |
135 |             if o.profile {
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/TrainBench.swift:144:82: warning: backward matching of the unlabeled trailing closure is deprecated; label the argument with 'onStep' to suppress this warning
142 |                     let c = LoRAConfig(lr: 0, maxSteps: 4, cacheLimitGB: o.cacheLimitGB, logEvery: 1,
143 |                                        useBlockCheckpoint: ckpt)
144 |                     LoRAFinetune.run(bb, nextBatch: { (x: x, y: y) }, config: c) { _, _, _, _ in st.append(Date()) }
    |                                                                                  `- warning: backward matching of the unlabeled trailing closure is deprecated; label the argument with 'onStep' to suppress this warning
145 |                     return median(zip(st.dropFirst(), st).map { $0.timeIntervalSince($1) * 1e3 })
146 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/RWKVGen/LoRAFinetune.swift:209:24: note: 'run(_:nextBatch:config:isCancelled:onStep:)' declared here
207 |     /// накопление и клип — общие.
208 |     @discardableResult
209 |     public static func run(
    |                        `- note: 'run(_:nextBatch:config:isCancelled:onStep:)' declared here
210 |         _ bb: X070Backbone,
211 |         nextBatch: () -> LoRABatch,
[170/189] Compiling DecodeBench main.swift
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:1417:9: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
1415 | // освободили» дают одинаковые 6.9 ГБ.
1416 | let footBefore = processFootprintGB()
1417 | MLX.GPU.clearCache()
     |         |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
     |         `- note: use 'Memory.clearCache' instead
1418 | print(String(format: "footprint в конце %.2f ГБ (до clearCache %.2f)",
1419 |              processFootprintGB(), footBefore))
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:619:13: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
 617 |         bb.fuseLerp = !args.noFuseLerp
 618 |         if norm, args.nativeIn16 { bb.rwkvqNativeInputDType = .float16 }
 619 |         GPU.clearCache()
     |             |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
     |             `- note: use 'Memory.clearCache' instead
 620 |         let grown = processFootprintGB() - before
 621 |         print(String(format: "  после загрузки (%@): footprint +%.2f ГБ; MLX активная %.2f, кеш %.2f, пик %.2f ГБ",
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:622:80: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
 620 |         let grown = processFootprintGB() - before
 621 |         print(String(format: "  после загрузки (%@): footprint +%.2f ГБ; MLX активная %.2f, кеш %.2f, пик %.2f ГБ",
 622 |                      norm ? "норма" : "прежний", grown, Double(GPU.activeMemory) / 1e9,
     |                                                                    |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
     |                                                                    `- note: use 'Memory.activeMemory' instead
 623 |                      Double(GPU.cacheMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
 624 |         return (bb, grown)
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:623:33: warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
 621 |         print(String(format: "  после загрузки (%@): footprint +%.2f ГБ; MLX активная %.2f, кеш %.2f, пик %.2f ГБ",
 622 |                      norm ? "норма" : "прежний", grown, Double(GPU.activeMemory) / 1e9,
 623 |                      Double(GPU.cacheMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
     |                                 |- warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
     |                                 `- note: use 'Memory.cacheMemory' instead
 624 |         return (bb, grown)
 625 |     }
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:623:64: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
 621 |         print(String(format: "  после загрузки (%@): footprint +%.2f ГБ; MLX активная %.2f, кеш %.2f, пик %.2f ГБ",
 622 |                      norm ? "норма" : "прежний", grown, Double(GPU.activeMemory) / 1e9,
 623 |                      Double(GPU.cacheMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
     |                                                                |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
     |                                                                `- note: use 'Memory.peakMemory' instead
 624 |         return (bb, grown)
 625 |     }
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:662:51: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
 660 |     }
 661 |     print(String(format: "footprint в конце: %.2f ГБ; MLX активная %.2f, кеш %.2f, пик %.2f ГБ",
 662 |                  processFootprintGB(), Double(GPU.activeMemory) / 1e9,
     |                                                   |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
     |                                                   `- note: use 'Memory.activeMemory' instead
 663 |                  Double(GPU.cacheMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
 664 | }
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:663:29: warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
 661 |     print(String(format: "footprint в конце: %.2f ГБ; MLX активная %.2f, кеш %.2f, пик %.2f ГБ",
 662 |                  processFootprintGB(), Double(GPU.activeMemory) / 1e9,
 663 |                  Double(GPU.cacheMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
     |                             |- warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
     |                             `- note: use 'Memory.cacheMemory' instead
 664 | }
 665 |
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:663:60: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
 661 |     print(String(format: "footprint в конце: %.2f ГБ; MLX активная %.2f, кеш %.2f, пик %.2f ГБ",
 662 |                  processFootprintGB(), Double(GPU.activeMemory) / 1e9,
 663 |                  Double(GPU.cacheMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
     |                                                            |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
     |                                                            `- note: use 'Memory.peakMemory' instead
 664 | }
 665 |
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:725:9: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
 723 |         print("истина посчитана (\(tp), счёт fp32)")
 724 |     }
 725 |     GPU.clearCache()
     |         |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
     |         `- note: use 'Memory.clearCache' instead
 726 |
 727 |     // 2. точный счёт тех же квантованных весов
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:733:9: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
 731 |         for i in 0 ..< N { exact.append(logProbs(e, i)) }
 732 |     }
 733 |     GPU.clearCache()
     |         |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
     |         `- note: use 'Memory.clearCache' instead
 734 |
 735 |     // 3. норма, два плеча на одной модели
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:829:51: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
 827 |                  labels.1, median(mB), 1000 / median(mB), median(mB) / median(mA), agree, topA.count))
 828 |     print(String(format: "footprint в конце: %.2f ГБ; MLX активная %.2f, пик %.2f ГБ",
 829 |                  processFootprintGB(), Double(GPU.activeMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
     |                                                   |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
     |                                                   `- note: use 'Memory.activeMemory' instead
 830 | }
 831 |
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:829:83: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
 827 |                  labels.1, median(mB), 1000 / median(mB), median(mB) / median(mA), agree, topA.count))
 828 |     print(String(format: "footprint в конце: %.2f ГБ; MLX активная %.2f, пик %.2f ГБ",
 829 |                  processFootprintGB(), Double(GPU.activeMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
     |                                                                                   |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
     |                                                                                   `- note: use 'Memory.peakMemory' instead
 830 | }
 831 |
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:879:119: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
 877 |                      name, args.rounds, mT.isEmpty ? .nan : median(mT), mW.isEmpty ? .nan : median(mW)))
 878 |     }
 879 |     print(String(format: "footprint в конце: %.2f ГБ; MLX пик %.2f ГБ", processFootprintGB(), Double(GPU.peakMemory) / 1e9))
     |                                                                                                          |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
     |                                                                                                          `- note: use 'Memory.peakMemory' instead
 880 | }
 881 |
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:892:9: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
 890 |         : args.noNative ? try X070Backbone.load(fromRwkvq: expand(path), useNativeKernel: false)
 891 |         : try X070Backbone.load(fromRwkvq: expand(path))
 892 |     GPU.clearCache()
     |         |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
     |         `- note: use 'Memory.clearCache' instead
 893 |     print("sb6: \(bb.rwkvqBackedKeys.contains { bb.hasNativeRepack($0) } ? "родной контейнер MLX" : "K3 (ядро GEMV на шаге)")")
 894 |     print(String(format: "загрузка %.1f с; footprint +%.2f ГБ; MLX активная %.2f ГБ, пик %.2f ГБ",
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:896:29: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
 894 |     print(String(format: "загрузка %.1f с; footprint +%.2f ГБ; MLX активная %.2f ГБ, пик %.2f ГБ",
 895 |                  Date().timeIntervalSince(t0), processFootprintGB() - f0,
 896 |                  Double(GPU.activeMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
     |                             |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
     |                             `- note: use 'Memory.activeMemory' instead
 897 |     fflush(stdout)
 898 |     // префилл: первый вызов — сборка ядер, меряются следующие
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:896:61: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
 894 |     print(String(format: "загрузка %.1f с; footprint +%.2f ГБ; MLX активная %.2f ГБ, пик %.2f ГБ",
 895 |                  Date().timeIntervalSince(t0), processFootprintGB() - f0,
 896 |                  Double(GPU.activeMemory) / 1e9, Double(GPU.peakMemory) / 1e9))
     |                                                             |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
     |                                                             `- note: use 'Memory.peakMemory' instead
 897 |     fflush(stdout)
 898 |     // префилл: первый вызов — сборка ядер, меряются следующие
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:911:52: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
 909 |     let pm = median(Array(ts.dropFirst()))
 910 |     print(String(format: "префилл T=512: первый вызов %.0f мс; далее медиана %.1f мс = %.0f ток/с; MLX пик %.2f ГБ",
 911 |                  ts[0], pm, 512e3 / pm, Double(GPU.peakMemory) / 1e9))
     |                                                    |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
     |                                                    `- note: use 'Memory.peakMemory' instead
 912 |     fflush(stdout)
 913 |     // декод: продолжение после префилла, teacher-forced, чтение argmax на каждом шаге
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:928:29: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
 926 |     print(String(format: "декод: медиана %.2f мс/ток = %.1f ток/с (раунды %@); MLX активная %.2f, пик %.2f ГБ; footprint %.2f ГБ",
 927 |                  median(ms), 1e3 / median(ms), ms.map { String(format: "%.2f", $0) }.joined(separator: " "),
 928 |                  Double(GPU.activeMemory) / 1e9, Double(GPU.peakMemory) / 1e9, processFootprintGB()))
     |                             |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
     |                             `- note: use 'Memory.activeMemory' instead
 929 |     // конвейер против синхронного жадного декода, чередованием: свободная
 930 |     // генерация от одного и того же состояния, 64 токена на раунд
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:928:61: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
 926 |     print(String(format: "декод: медиана %.2f мс/ток = %.1f ток/с (раунды %@); MLX активная %.2f, пик %.2f ГБ; footprint %.2f ГБ",
 927 |                  median(ms), 1e3 / median(ms), ms.map { String(format: "%.2f", $0) }.joined(separator: " "),
 928 |                  Double(GPU.activeMemory) / 1e9, Double(GPU.peakMemory) / 1e9, processFootprintGB()))
     |                                                             |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
     |                                                             `- note: use 'Memory.peakMemory' instead
 929 |     // конвейер против синхронного жадного декода, чередованием: свободная
 930 |     // генерация от одного и того же состояния, 64 токена на раунд
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:1053:29: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
1051 |     let dt = Date().timeIntervalSince(t)
1052 |     print(String(format: "загрузка %.2f с | MLX активная %.3f, кеш %.3f, пик %.3f ГБ | footprint +%.3f ГБ | emb %@",
1053 |                  dt, gb(GPU.activeMemory), gb(GPU.cacheMemory), gb(GPU.peakMemory),
     |                             |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
     |                             `- note: use 'Memory.activeMemory' instead
1054 |                  processFootprintGB() - f0, bb.rwkvqEmbTable == nil ? "плотный" : "сжатый (строки выборкой)"))
1055 |     // освобождённое при загрузке Metal возвращает системе не сразу
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:1053:51: warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
1051 |     let dt = Date().timeIntervalSince(t)
1052 |     print(String(format: "загрузка %.2f с | MLX активная %.3f, кеш %.3f, пик %.3f ГБ | footprint +%.3f ГБ | emb %@",
1053 |                  dt, gb(GPU.activeMemory), gb(GPU.cacheMemory), gb(GPU.peakMemory),
     |                                                   |- warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
     |                                                   `- note: use 'Memory.cacheMemory' instead
1054 |                  processFootprintGB() - f0, bb.rwkvqEmbTable == nil ? "плотный" : "сжатый (строки выборкой)"))
1055 |     // освобождённое при загрузке Metal возвращает системе не сразу
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:1053:72: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
1051 |     let dt = Date().timeIntervalSince(t)
1052 |     print(String(format: "загрузка %.2f с | MLX активная %.3f, кеш %.3f, пик %.3f ГБ | footprint +%.3f ГБ | emb %@",
1053 |                  dt, gb(GPU.activeMemory), gb(GPU.cacheMemory), gb(GPU.peakMemory),
     |                                                                        |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
     |                                                                        `- note: use 'Memory.peakMemory' instead
1054 |                  processFootprintGB() - f0, bb.rwkvqEmbTable == nil ? "плотный" : "сжатый (строки выборкой)"))
1055 |     // освобождённое при загрузке Metal возвращает системе не сразу
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:1066:9: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
1064 |     let bb = try X070Backbone.load(fromRwkvq: expand(path))
1065 |     let sc = try RwkvqSidecar.open(expand(path))
1066 |     GPU.clearCache()
     |         |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
     |         `- note: use 'Memory.clearCache' instead
1067 |     let win = try loadArrays(url: URL(fileURLWithPath: expand(args.windows)))["ids"]!
1068 |     let pre = (win[0].asArray(Int32.self) + win[4].asArray(Int32.self)).map { Int($0) }
[171/189] Compiling DecodeBench BatchBench.swift
[172/189] Emitting module DecodeBench
/Users/admin/builder/spi-builder-workspace/Sources/DecodeBench/main.swift:1417:9: warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
1415 | // освободили» дают одинаковые 6.9 ГБ.
1416 | let footBefore = processFootprintGB()
1417 | MLX.GPU.clearCache()
     |         |- warning: 'clearCache()' is deprecated: renamed to 'Memory.clearCache'
     |         `- note: use 'Memory.clearCache' instead
1418 | print(String(format: "footprint в конце %.2f ГБ (до clearCache %.2f)",
1419 |              processFootprintGB(), footBefore))
[172/189] Write Objects.LinkFileList
[175/189] Emitting module RerankRun
[176/189] Compiling RerankRun BenchEncode.swift
/Users/admin/builder/spi-builder-workspace/Sources/RerankRun/BenchEncode.swift:89:17: warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
 87 |     // тот же, иначе меряется не тот код, который работает в продакшене.
 88 |     if cacheLimitGB > 0 {
 89 |         MLX.GPU.set(cacheLimit: Int(cacheLimitGB * 1e9))
    |                 `- warning: 'set(cacheLimit:)' is deprecated: use Memory.cacheLimit property
 90 |     }
 91 |     let swap0 = swapCounters()
/Users/admin/builder/spi-builder-workspace/Sources/RerankRun/BenchEncode.swift:177:55: warning: 'asData(noCopy:disambiguate:)' is deprecated: use asData(acccess: .copy)
175 |             // fp32 → fp16 → байты. Без него замер кончался бы на GPU, а
176 |             // кэш пишется всё-таки на хост.
177 |             _ = sel.asType(.float32).asType(.float16).asData(disambiguate: true)
    |                                                       `- warning: 'asData(noCopy:disambiguate:)' is deprecated: use asData(acccess: .copy)
178 |             b["select"]! += Date().timeIntervalSince(t)
179 |
/Users/admin/builder/spi-builder-workspace/Sources/RerankRun/BenchEncode.swift:98:9: warning: initialization of immutable value 'cfg' was never used; consider replacing with assignment to '_' or removing it
 96 |     var t = Date()
 97 |     let backbone = try loadBase(modelPath)
 98 |     let cfg = backbone.cfg
    |         `- warning: initialization of immutable value 'cfg' was never used; consider replacing with assignment to '_' or removing it
 99 |     guard let tok = WorldTokenizer(
100 |             vocabURL: URL(fileURLWithPath: expand(vocabPath))) else {
[177/189] Compiling RerankRun main.swift
[177/189] Write Objects.LinkFileList
[179/189] Emitting module EmbedRun
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:251:54: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
249 | print(String(format: "база: %@, L=%d D=%d; загрузка %.1f с; MLX активная %.2f ГБ, footprint +%.2f ГБ",
250 |              quantised ? ".rwkvq" : "плотная", base.cfg.nLayer, base.cfg.nEmbd,
251 |              Date().timeIntervalSince(t), Double(GPU.activeMemory) / 1e9, footprintGB() - f0))
    |                                                      |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                                                      `- note: use 'Memory.activeMemory' instead
252 |
253 | /// Строки задачи: отложенные — с конца, обучающие — с начала (не пересекаются).
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:285:71: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
283 |             let unpacked = base.unpackTopLayers(args.unpack ?? n)
284 |             print(String(format: "развёрнуто в плотные: %d весов верхних %d слоёв; MLX активная %.2f ГБ",
285 |                          unpacked.count, args.unpack ?? n, Double(GPU.activeMemory) / 1e9))
    |                                                                       |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                                                                       `- note: use 'Memory.activeMemory' instead
286 |         }
287 |         mode = .topLayers(n)
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:432:102: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
430 |             let v = base.withoutGradientPath { arm.1() }
431 |             eval(v)
432 |             if round > 0 { times[i].append(Date().timeIntervalSince(t0)); peaks[i].append(Double(GPU.peakMemory) / 1e9) }
    |                                                                                                      |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                                                                                      `- note: use 'Memory.peakMemory' instead
433 |             if reference == nil { reference = v }
434 |             else if round == 0 {
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:544:29: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
542 |     // Разность пика и активной памяти до фазы — её временное потребление.
543 |     var stepNo = 0
544 |     var before = Double(GPU.activeMemory) / 1e9
    |                             |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                             `- note: use 'Memory.activeMemory' instead
545 |     SequentialBody.probe = { name in
546 |         if name == "batch" { stepNo += 1 }
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:547:33: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
545 |     SequentialBody.probe = { name in
546 |         if name == "batch" { stepNo += 1 }
547 |         let active = Double(GPU.activeMemory) / 1e9, peak = Double(GPU.peakMemory) / 1e9
    |                                 |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                                 `- note: use 'Memory.activeMemory' instead
548 |         if stepNo == 3 {       // третий шаг: установившийся (моменты Adam заведены, ядра собраны)
549 |             print(String(format: "  ПРИБОР %-10@ активная %.3f  пик за фазу %.3f  (+%.3f к началу фазы)  кэш %.3f",
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:547:72: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
545 |     SequentialBody.probe = { name in
546 |         if name == "batch" { stepNo += 1 }
547 |         let active = Double(GPU.activeMemory) / 1e9, peak = Double(GPU.peakMemory) / 1e9
    |                                                                        |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                                                        `- note: use 'Memory.peakMemory' instead
548 |         if stepNo == 3 {       // третий шаг: установившийся (моменты Adam заведены, ядра собраны)
549 |             print(String(format: "  ПРИБОР %-10@ активная %.3f  пик за фазу %.3f  (+%.3f к началу фазы)  кэш %.3f",
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:550:84: warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
548 |         if stepNo == 3 {       // третий шаг: установившийся (моменты Adam заведены, ядра собраны)
549 |             print(String(format: "  ПРИБОР %-10@ активная %.3f  пик за фазу %.3f  (+%.3f к началу фазы)  кэш %.3f",
550 |                          name as NSString, active, peak, peak - before, Double(GPU.cacheMemory) / 1e9))
    |                                                                                    |- warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
    |                                                                                    `- note: use 'Memory.cacheMemory' instead
551 |         }
552 |         before = active
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:589:47: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
587 |             if s.step > 2 {
588 |                 abTime[arm].append(Date().timeIntervalSince(last))
589 |                 abPeak[arm].append(Double(GPU.peakMemory) / 1e9)
    |                                               |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                               `- note: use 'Memory.peakMemory' instead
590 |             }
591 |             SequentialBody.pipelined = s.step % 2 == 1
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:615:29: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
613 |     print(String(format: "после обучения: %@ | %d шагов за %.1f с (%.2f с/шаг) | пик MLX %.2f ГБ, footprint +%.2f ГБ",
614 |                  r.after?.description ?? "—", r.steps, r.seconds, r.seconds / Double(max(1, r.steps)),
615 |                  Double(GPU.peakMemory) / 1e9, footprintGB() - f0))
    |                             |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                             `- note: use 'Memory.peakMemory' instead
616 |     report["before"] = r.before?.headline ?? Double.nan
617 |     report["after"] = r.after?.headline ?? Double.nan
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:619:42: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
617 |     report["after"] = r.after?.headline ?? Double.nan
618 |     report["final_loss"] = Double(r.finalLoss); report["train_seconds"] = r.seconds
619 |     report["train_peak_gb"] = Double(GPU.peakMemory) / 1e9
    |                                          |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                          `- note: use 'Memory.peakMemory' instead
620 |     if args.compareFolded { compareFolded(stage) }
621 |
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:794:29: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
792 |     print(String(format: "оценка: %@ | %.1f с (%.1f мс на строку) | пик MLX %.2f ГБ, пик footprint оценки %.2f ГБ",
793 |                  before.description, evalSeconds, evalSeconds * 1e3 / Double(heldOut.count),
794 |                  Double(GPU.peakMemory) / 1e9, watch.take()))
    |                             |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                             `- note: use 'Memory.peakMemory' instead
795 |     report["before"] = before.headline; report["eval_seconds"] = evalSeconds
796 |     report["eval_peak_gb"] = Double(GPU.peakMemory) / 1e9
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:796:41: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
794 |                  Double(GPU.peakMemory) / 1e9, watch.take()))
795 |     report["before"] = before.headline; report["eval_seconds"] = evalSeconds
796 |     report["eval_peak_gb"] = Double(GPU.peakMemory) / 1e9
    |                                         |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                         `- note: use 'Memory.peakMemory' instead
797 |     if args.compareFolded { compareFolded(stage) }
798 | }
[180/189] Compiling EmbedRun main.swift
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:251:54: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
249 | print(String(format: "база: %@, L=%d D=%d; загрузка %.1f с; MLX активная %.2f ГБ, footprint +%.2f ГБ",
250 |              quantised ? ".rwkvq" : "плотная", base.cfg.nLayer, base.cfg.nEmbd,
251 |              Date().timeIntervalSince(t), Double(GPU.activeMemory) / 1e9, footprintGB() - f0))
    |                                                      |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                                                      `- note: use 'Memory.activeMemory' instead
252 |
253 | /// Строки задачи: отложенные — с конца, обучающие — с начала (не пересекаются).
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:285:71: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
283 |             let unpacked = base.unpackTopLayers(args.unpack ?? n)
284 |             print(String(format: "развёрнуто в плотные: %d весов верхних %d слоёв; MLX активная %.2f ГБ",
285 |                          unpacked.count, args.unpack ?? n, Double(GPU.activeMemory) / 1e9))
    |                                                                       |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                                                                       `- note: use 'Memory.activeMemory' instead
286 |         }
287 |         mode = .topLayers(n)
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:432:102: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
430 |             let v = base.withoutGradientPath { arm.1() }
431 |             eval(v)
432 |             if round > 0 { times[i].append(Date().timeIntervalSince(t0)); peaks[i].append(Double(GPU.peakMemory) / 1e9) }
    |                                                                                                      |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                                                                                      `- note: use 'Memory.peakMemory' instead
433 |             if reference == nil { reference = v }
434 |             else if round == 0 {
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:544:29: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
542 |     // Разность пика и активной памяти до фазы — её временное потребление.
543 |     var stepNo = 0
544 |     var before = Double(GPU.activeMemory) / 1e9
    |                             |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                             `- note: use 'Memory.activeMemory' instead
545 |     SequentialBody.probe = { name in
546 |         if name == "batch" { stepNo += 1 }
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:547:33: warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
545 |     SequentialBody.probe = { name in
546 |         if name == "batch" { stepNo += 1 }
547 |         let active = Double(GPU.activeMemory) / 1e9, peak = Double(GPU.peakMemory) / 1e9
    |                                 |- warning: 'activeMemory' is deprecated: renamed to 'Memory.activeMemory'
    |                                 `- note: use 'Memory.activeMemory' instead
548 |         if stepNo == 3 {       // третий шаг: установившийся (моменты Adam заведены, ядра собраны)
549 |             print(String(format: "  ПРИБОР %-10@ активная %.3f  пик за фазу %.3f  (+%.3f к началу фазы)  кэш %.3f",
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:547:72: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
545 |     SequentialBody.probe = { name in
546 |         if name == "batch" { stepNo += 1 }
547 |         let active = Double(GPU.activeMemory) / 1e9, peak = Double(GPU.peakMemory) / 1e9
    |                                                                        |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                                                        `- note: use 'Memory.peakMemory' instead
548 |         if stepNo == 3 {       // третий шаг: установившийся (моменты Adam заведены, ядра собраны)
549 |             print(String(format: "  ПРИБОР %-10@ активная %.3f  пик за фазу %.3f  (+%.3f к началу фазы)  кэш %.3f",
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:550:84: warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
548 |         if stepNo == 3 {       // третий шаг: установившийся (моменты Adam заведены, ядра собраны)
549 |             print(String(format: "  ПРИБОР %-10@ активная %.3f  пик за фазу %.3f  (+%.3f к началу фазы)  кэш %.3f",
550 |                          name as NSString, active, peak, peak - before, Double(GPU.cacheMemory) / 1e9))
    |                                                                                    |- warning: 'cacheMemory' is deprecated: renamed to 'Memory.cacheMemory'
    |                                                                                    `- note: use 'Memory.cacheMemory' instead
551 |         }
552 |         before = active
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:589:47: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
587 |             if s.step > 2 {
588 |                 abTime[arm].append(Date().timeIntervalSince(last))
589 |                 abPeak[arm].append(Double(GPU.peakMemory) / 1e9)
    |                                               |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                               `- note: use 'Memory.peakMemory' instead
590 |             }
591 |             SequentialBody.pipelined = s.step % 2 == 1
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:615:29: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
613 |     print(String(format: "после обучения: %@ | %d шагов за %.1f с (%.2f с/шаг) | пик MLX %.2f ГБ, footprint +%.2f ГБ",
614 |                  r.after?.description ?? "—", r.steps, r.seconds, r.seconds / Double(max(1, r.steps)),
615 |                  Double(GPU.peakMemory) / 1e9, footprintGB() - f0))
    |                             |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                             `- note: use 'Memory.peakMemory' instead
616 |     report["before"] = r.before?.headline ?? Double.nan
617 |     report["after"] = r.after?.headline ?? Double.nan
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:619:42: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
617 |     report["after"] = r.after?.headline ?? Double.nan
618 |     report["final_loss"] = Double(r.finalLoss); report["train_seconds"] = r.seconds
619 |     report["train_peak_gb"] = Double(GPU.peakMemory) / 1e9
    |                                          |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                          `- note: use 'Memory.peakMemory' instead
620 |     if args.compareFolded { compareFolded(stage) }
621 |
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:794:29: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
792 |     print(String(format: "оценка: %@ | %.1f с (%.1f мс на строку) | пик MLX %.2f ГБ, пик footprint оценки %.2f ГБ",
793 |                  before.description, evalSeconds, evalSeconds * 1e3 / Double(heldOut.count),
794 |                  Double(GPU.peakMemory) / 1e9, watch.take()))
    |                             |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                             `- note: use 'Memory.peakMemory' instead
795 |     report["before"] = before.headline; report["eval_seconds"] = evalSeconds
796 |     report["eval_peak_gb"] = Double(GPU.peakMemory) / 1e9
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:796:41: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
794 |                  Double(GPU.peakMemory) / 1e9, watch.take()))
795 |     report["before"] = before.headline; report["eval_seconds"] = evalSeconds
796 |     report["eval_peak_gb"] = Double(GPU.peakMemory) / 1e9
    |                                         |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                         `- note: use 'Memory.peakMemory' instead
797 |     if args.compareFolded { compareFolded(stage) }
798 | }
/Users/admin/builder/spi-builder-workspace/Sources/EmbedRun/main.swift:500:80: warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
498 |                 maxTokens: maxTokens, dedupeCandidates: st.dedupeEvaluationPool, foldInstructions: arm == 1)
499 |             let dt = Date().timeIntervalSince(t0)
500 |             if round > 0 { times[arm].append(dt); peaks[arm].append(Double(GPU.peakMemory) / 1e9) }
    |                                                                                |- warning: 'peakMemory' is deprecated: renamed to 'Memory.peakMemory'
    |                                                                                `- note: use 'Memory.peakMemory' instead
501 |             if let prev = metrics[arm], prev != r || ranks[arm] != row {
502 |                 print("ВНИМАНИЕ: плечо «\(names[arm])» не повторилось от круга к кругу")
[180/189] Write Objects.LinkFileList
[181/189] Linking gen-run
[182/189] Applying gen-run
[183/189] Linking decode-bench
[184/189] Applying decode-bench
[185/189] Linking rerank-run
[186/189] Applying rerank-run
[187/189] Linking embed-run
[188/189] Applying embed-run
Build complete! (22.59s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "mlx-swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.31.4",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ml-explore/mlx-swift"
    }
  ],
  "manifest_display_name" : "SwiftRWKV",
  "name" : "SwiftRWKV",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "RWKVGen",
      "targets" : [
        "RWKVGen"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "RWKVQuant",
      "targets" : [
        "RWKVQuant"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "RWKVEmbedding",
      "targets" : [
        "RWKVEmbedding"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "RWKVRerank",
      "targets" : [
        "RWKVRerank"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "rerank-run",
      "targets" : [
        "RerankRun"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "decode-bench",
      "targets" : [
        "DecodeBench"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "embed-run",
      "targets" : [
        "EmbedRun"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "gen-run",
      "targets" : [
        "GenRun"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RerankRun",
      "module_type" : "SwiftTarget",
      "name" : "RerankRun",
      "path" : "Sources/RerankRun",
      "product_dependencies" : [
        "MLX"
      ],
      "product_memberships" : [
        "rerank-run"
      ],
      "sources" : [
        "BenchEncode.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "RWKVRerank",
        "RWKVGen"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "RWKVRerank",
      "module_type" : "SwiftTarget",
      "name" : "RWKVRerank",
      "path" : "Sources/RWKVRerank",
      "product_dependencies" : [
        "MLX",
        "MLXNN",
        "MLXRandom"
      ],
      "product_memberships" : [
        "RWKVRerank",
        "rerank-run"
      ],
      "sources" : [
        "RerankData.swift",
        "RerankEncode.swift",
        "RerankInference.swift",
        "RerankLoss.swift",
        "RerankMetrics.swift",
        "RerankSweep.swift",
        "RerankTrainable.swift",
        "RerankTraining.swift",
        "Reranker.swift",
        "RerankerHead.swift",
        "StateCache.swift"
      ],
      "target_dependencies" : [
        "RWKVGen",
        "RWKVKernel"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RWKVQuant",
      "module_type" : "SwiftTarget",
      "name" : "RWKVQuant",
      "path" : "Sources/RWKVQuant",
      "product_dependencies" : [
        "MLX",
        "MLXFast"
      ],
      "product_memberships" : [
        "RWKVGen",
        "RWKVQuant",
        "RWKVEmbedding",
        "RWKVRerank",
        "rerank-run",
        "decode-bench",
        "embed-run",
        "gen-run"
      ],
      "sources" : [
        "RwkvqDequant.swift",
        "RwkvqFile.swift",
        "RwkvqFullConvert.swift",
        "RwkvqNative.swift",
        "RwkvqSb6GEMV.swift",
        "RwkvqSidecar.swift",
        "RwkvqSpill.swift",
        "RwkvqSymGEMV.swift",
        "RwkvqSymRows.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RWKVKernel",
      "module_type" : "SwiftTarget",
      "name" : "RWKVKernel",
      "path" : "Sources/RWKVKernel",
      "product_dependencies" : [
        "MLX",
        "MLXFast"
      ],
      "product_memberships" : [
        "RWKVGen",
        "RWKVEmbedding",
        "RWKVRerank",
        "rerank-run",
        "decode-bench",
        "embed-run",
        "gen-run"
      ],
      "sources" : [
        "Ablation.swift",
        "WKV7.swift",
        "WKV7DecodeKernels.swift",
        "WKV7Reference.swift",
        "WKV7Step.swift",
        "WKV7Train.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RWKVGenTests",
      "module_type" : "SwiftTarget",
      "name" : "RWKVGenTests",
      "path" : "Tests/RWKVGenTests",
      "sources" : [
        "BPETokenizerTests.swift",
        "BaseContractTests.swift",
        "BatchGenerateTests.swift",
        "BlockParityTests.swift",
        "BlockRefactorDump.swift",
        "CompiledStepTests.swift",
        "DecodeKernelTests.swift",
        "DialogueTests.swift",
        "DocExamples.generated.swift",
        "EmbeddingCurriculumTests.swift",
        "EmbeddingDatasetTests.swift",
        "EmbeddingFinetuneTests.swift",
        "EmbeddingParityTests.swift",
        "EmbeddingSequentialTests.swift",
        "EmbeddingSmokeTests.swift",
        "EmbeddingStateBankTests.swift",
        "EmbeddingStateScopeTests.swift",
        "EmbeddingTests.swift",
        "FrozenPassKernelTests.swift",
        "GPUSamplerTests.swift",
        "GeneratePipelineTests.swift",
        "GenerateSmokeTests.swift",
        "GenerateTests.swift",
        "InferenceSmokeTests.swift",
        "InitialStateBankTests.swift",
        "InitialStateContractTests.swift",
        "InstructionCacheTests.swift",
        "LoRAFinetuneCharacterizationTests.swift",
        "LossMaskTests.swift",
        "MergeRealCacheTests.swift",
        "PEFTStateCrossCheck.swift",
        "PEFTStateFileTests.swift",
        "PartialFinetuneCharacterizationTests.swift",
        "PartialFinetuneDump.swift",
        "PerplexityTests.swift",
        "PrefillContinuationTests.swift",
        "PrefillTests.swift",
        "PretrainTests.swift",
        "QuantisedWeightAccessTests.swift",
        "RWKVBlockTests.swift",
        "RerankDataTests.swift",
        "RerankInferenceTests.swift",
        "RerankLossTests.swift",
        "RerankMetricsTests.swift",
        "RerankParityTests.swift",
        "RerankSweepTests.swift",
        "RerankTrainingTests.swift",
        "RerankerHeadTests.swift",
        "RetrievalDedupeTests.swift",
        "RwkvqBackwardTests.swift",
        "RwkvqBaseTests.swift",
        "RwkvqDTypeTests.swift",
        "RwkvqDownstreamTests.swift",
        "RwkvqFileTests.swift",
        "RwkvqLegacyDump.swift",
        "RwkvqLoadDump.swift",
        "RwkvqLoadTests.swift",
        "RwkvqModelTests.swift",
        "RwkvqQuantReferenceTests.swift",
        "RwkvqSb6GEMVTests.swift",
        "RwkvqSymGEMVTests.swift",
        "RwkvqTests.swift",
        "RwkvqWeightStreamingTests.swift",
        "SamplingTests.swift",
        "SequentialBackwardTests.swift",
        "ShortPassKernelTests.swift",
        "StateCacheTests.swift",
        "StateCastDump.swift",
        "StateEarlyStoppingTests.swift",
        "StateSnapshotTests.swift",
        "StateTuningCastTests.swift",
        "StateTuningTests.swift",
        "TinyBackbone.swift",
        "TopLayerFinetuneTests.swift",
        "TrainerTests.swift",
        "WKV7KernelHazardTests.swift",
        "WKV7KernelParityTests.swift",
        "WKV7SequenceTests.swift",
        "WKV7StateTests.swift",
        "WKV7StepTests.swift",
        "WKV7TrainKernelTests.swift",
        "WKVDTypeLeakTests.swift",
        "WeightStreamingTests.swift",
        "WorldTokenizerTests.swift",
        "X070InitTests.swift",
        "X070ParityTests.swift",
        "X070StateTests.swift"
      ],
      "target_dependencies" : [
        "RWKVGen",
        "RWKVKernel",
        "RWKVQuant",
        "RWKVEmbedding",
        "RWKVRerank"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RWKVGen",
      "module_type" : "SwiftTarget",
      "name" : "RWKVGen",
      "path" : "Sources/RWKVGen",
      "product_dependencies" : [
        "MLX",
        "MLXNN",
        "MLXFast",
        "MLXRandom",
        "MLXOptimizers"
      ],
      "product_memberships" : [
        "RWKVGen",
        "RWKVEmbedding",
        "RWKVRerank",
        "rerank-run",
        "decode-bench",
        "embed-run",
        "gen-run"
      ],
      "sources" : [
        "BPETokenizer.swift",
        "BatchGenerate.swift",
        "Checkpoint.swift",
        "Dialogue.swift",
        "GPUSampler.swift",
        "Generate.swift",
        "InitialState.swift",
        "InitialStateBank.swift",
        "LoRA.swift",
        "LoRAFinetune.swift",
        "PEFTStateFile.swift",
        "RWKVBatchState.swift",
        "RWKVBlock.swift",
        "RwkvqBase.swift",
        "RwkvqStandaloneLoad.swift",
        "Sampling.swift",
        "Tokenizer.swift",
        "TopLayerFinetune.swift",
        "Training/Pretrain.swift",
        "Training/SequentialBackward.swift",
        "Training/TokenStream.swift",
        "Training/TrainableSet.swift",
        "Training/Trainer.swift",
        "Training/TrainingConfig.swift",
        "Training/X070Init.swift",
        "WeightStreaming.swift",
        "WorldTokenizer.swift",
        "X070Backbone.swift",
        "X070Generation.swift",
        "X070PartialFinetune.swift"
      ],
      "target_dependencies" : [
        "RWKVKernel",
        "RWKVQuant"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RWKVEmbedding",
      "module_type" : "SwiftTarget",
      "name" : "RWKVEmbedding",
      "path" : "Sources/RWKVEmbedding",
      "product_dependencies" : [
        "MLX",
        "MLXNN",
        "MLXRandom"
      ],
      "product_memberships" : [
        "RWKVEmbedding",
        "embed-run"
      ],
      "sources" : [
        "ContrastiveLoss.swift",
        "Embedder.swift",
        "EmbeddingCheckpoint.swift",
        "EmbeddingCurriculum.swift",
        "EmbeddingDataset.swift",
        "EmbeddingFinetune.swift",
        "EmbeddingMetrics.swift",
        "EmbeddingObjective.swift",
        "EmbeddingTrainable.swift",
        "GradCache.swift",
        "InstructionCache.swift"
      ],
      "target_dependencies" : [
        "RWKVGen",
        "RWKVKernel"
      ],
      "type" : "library"
    },
    {
      "c99name" : "GenRun",
      "module_type" : "SwiftTarget",
      "name" : "GenRun",
      "path" : "Sources/GenRun",
      "product_dependencies" : [
        "MLX"
      ],
      "product_memberships" : [
        "gen-run"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "RWKVGen"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "EmbedRun",
      "module_type" : "SwiftTarget",
      "name" : "EmbedRun",
      "path" : "Sources/EmbedRun",
      "product_dependencies" : [
        "MLX"
      ],
      "product_memberships" : [
        "embed-run"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "RWKVEmbedding",
        "RWKVGen"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "DecodeBench",
      "module_type" : "SwiftTarget",
      "name" : "DecodeBench",
      "path" : "Sources/DecodeBench",
      "product_dependencies" : [
        "MLX"
      ],
      "product_memberships" : [
        "decode-bench"
      ],
      "sources" : [
        "BatchBench.swift",
        "TokBench.swift",
        "TrainBench.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "RWKVGen",
        "RWKVQuant"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.10"
}
Done.