MCPcopy Create free account
hub / github.com/InftyAI/llmaz / MockASampleModel

Function MockASampleModel

test/util/mock.go:34–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32)
33
34func MockASampleModel() *coreapi.OpenModel {
35 return wrapper.MakeModel(sampleModelName).FamilyName("llama3").
36 ModelSourceWithModelHub("Huggingface").
37 ModelSourceWithModelID("meta-llama/Meta-Llama-3-8B", "", "", nil, nil).
38 InferenceFlavors(
39 *wrapper.MakeFlavor("a100").SetRequest("nvidia.com/gpu", "1").Obj(),
40 *wrapper.MakeFlavor("a10").SetRequest("nvidia.com/gpu", "2").Obj()).
41 Obj()
42}
43
44func MockASamplePlayground(ns string) *inferenceapi.Playground {
45 return wrapper.MakePlayground("playground-llama3-8b", ns).ModelClaim(sampleModelName).Label(coreapi.ModelNameLabelKey, sampleModelName).Obj()

Callers 6

TestModelSourceProviderFunction · 0.92
service_test.goFile · 0.92
playground_test.goFile · 0.92
hpa_test.goFile · 0.92
model_test.goFile · 0.92
readyForTestingFunction · 0.92

Calls 8

MakeModelFunction · 0.92
MakeFlavorFunction · 0.92
InferenceFlavorsMethod · 0.80
FamilyNameMethod · 0.80
SetRequestMethod · 0.80
ObjMethod · 0.45

Tested by 2

TestModelSourceProviderFunction · 0.74
readyForTestingFunction · 0.74