CI / test (push) Successful in 9m31s
Each agent measures one core's memory rate beside the whole machine's; the estimate takes a replica's threads at about one core's rate each, up to the machine's, calibrated by llama-bench on the PoC. The serve form shows it beside a card's, warns when slow, and asks for the CPU on purpose when a reply would take minutes; ctl model plan, the console and serve jobs say it too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
415 B
Go
18 lines
415 B
Go
package agent
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
"time"
|
|
|
|
"gitea.mynodes.xyz/ilker/llmgw/internal/agent/discovery"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
// Half a gigabyte read per test binary, and contending with the tests
|
|
// for the CPUs: these never look at the figure.
|
|
measureBandwidth = func() discovery.Bandwidth { return discovery.Bandwidth{} }
|
|
bandwidthDelay = func() time.Duration { return 0 }
|
|
os.Exit(m.Run())
|
|
}
|