MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / ServerProcess

Class ServerProcess

subprojects/llama.cpp/tools/server/tests/utils.py:45–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44
45class ServerProcess:
46 # default options
47 debug: bool = False
48 server_port: int = 8080
49 server_host: str = "127.0.0.1"
50 model_hf_repo: str | None = "ggml-org/models"
51 model_hf_file: str | None = "tinyllamas/stories260K.gguf"
52 model_alias: str = "tinyllama-2"
53 temperature: float = 0.8
54 seed: int = 42
55 offline: bool = False
56
57 # custom options
58 model_alias: str | None = None
59 model_url: str | None = None
60 model_file: str | None = None
61 model_draft: str | None = None
62 n_threads: int | None = None
63 n_gpu_layer: int | None = None
64 n_batch: int | None = None
65 n_ubatch: int | None = None
66 n_ctx: int | None = None
67 n_ga: int | None = None
68 n_ga_w: int | None = None
69 n_predict: int | None = None
70 n_prompts: int | None = 0
71 slot_save_path: str | None = None
72 id_slot: int | None = None
73 cache_prompt: bool | None = None
74 n_slots: int | None = None
75 ctk: str | None = None
76 ctv: str | None = None
77 fa: str | None = None
78 server_continuous_batching: bool | None = False
79 server_embeddings: bool | None = False
80 server_reranking: bool | None = False
81 server_metrics: bool | None = False
82 kv_unified: bool | None = False
83 server_slots: bool | None = False
84 pooling: str | None = None
85 draft: int | None = None
86 api_key: str | None = None
87 models_dir: str | None = None
88 models_max: int | None = None
89 no_models_autoload: bool | None = None
90 lora_files: List[str] | None = None
91 enable_ctx_shift: int | None = False
92 draft_min: int | None = None
93 draft_max: int | None = None
94 no_webui: bool | None = None
95 jinja: bool | None = None
96 reasoning_format: Literal['deepseek', 'none', 'nothink'] | None = None
97 reasoning_budget: int | None = None
98 chat_template: str | None = None
99 chat_template_file: str | None = None
100 server_path: str | None = None
101 mmproj_url: str | None = None
102 media_path: str | None = None

Callers 11

runFunction · 0.90
tinyllama2Method · 0.85
bert_bge_smallMethod · 0.85
tinyllama_infillMethod · 0.85
stories15m_moeMethod · 0.85
jina_reranker_tinyMethod · 0.85
tinygemma3Method · 0.85
routerMethod · 0.85
test_with_big_modelFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_with_big_modelFunction · 0.68