(model_path)
| 349 | |
| 350 | |
| 351 | def _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 | |
| 364 | def _generate_test_tokens(model, tokens, max_tokens=3): |
no outgoing calls
no test coverage detected
searching dependent graphs…