Versions in this module Expand all Collapse all v0 v0.10.0 Oct 19, 2026 v0.0.0 Oct 16, 2026 Changes in this version + const DefaultBaseURL + const HuggingFaceAPIURL + const SWEBenchCacheTTL + const SWEBenchURL + func CheckHardware(parameterSize string, systemRAMGB float64) (bool, float64) + func CheckHardwareSafe(parameterSize string, systemRAMGB float64) (bool, float64) + func ComputeRecommendedScore(swe, speedTPM, ramFit float64) float64 + func Detect(ctx context.Context, baseURL string) bool + func DetectAppleSiliconBandwidthGBs() float64 — darwin/amd64, linux/amd64 + func EstimateCloudSpeedTPM(pricePerToken float64) float64 + func EstimateLocalSpeedTPM(paramsB, bandwidthGBs float64) float64 + func EstimateRAMGB(paramsB float64) float64 + func FetchSWEBenchScores(ctx context.Context, url string) (map[string]float64, error) + func FindSWEScore(scores map[string]float64, hfRepoID string) (float64, bool) + func FormatTOMLSnippet(ranked []RankedModel) string + func GetSystemRAMGB() float64 — darwin/amd64, linux/amd64 + func InferTaskLabel(info HFModelInfo, ollamaName string) string + func MatchModelScore(ollamaName string, scores map[string]float64) (float64, bool) + func ModelFamily(name string) string + func NormalizeCloudID(id string) string + func ParseAppleSiliconBandwidth(brandString string) float64 + func ParseParamSize(s string) float64 + type HFModelInfo struct + ModelID string + PipelineTag string + Tags []string + func FetchHFModelInfo(ctx context.Context, baseURL string, modelFamily string) (HFModelInfo, error) + type Model struct + CompletionPricePerToken float64 + Family string + Name string + ParameterSize string + Provider string + Size int64 + func FetchModels(ctx context.Context, baseURL string) ([]Model, error) + type RankedModel struct + Rank int + RecommendedScore float64 + SWEScore float64 + ScoreSource string + SpeedTPM float64 + func RankModels(models []Model, limit int, sweScores map[string]float64, ...) []RankedModel