MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / _create_test_model

Function _create_test_model

tests/test_llama.py:351–361  ·  view source on GitHub ↗
(model_path)

Source from the content-addressed store, hash-verified

349
350
351def _create_test_model(model_path):
352 return llama_cpp.Llama(
353 model_path,
354 n_ctx=64,
355 n_batch=64,
356 n_ubatch=64,
357 n_threads=multiprocessing.cpu_count(),
358 n_threads_batch=multiprocessing.cpu_count(),
359 logits_all=False,
360 verbose=False,
361 )
362
363
364def _generate_test_tokens(model, tokens, max_tokens=3):

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…