[llama.cpp ❯ ./build/bin/llama-server -m ~/dl/nomic-ai_nomic-embed-code-Q5_K_M.gguf \ superm1/rocm-github-action ~2?2
-c 8192
--embedding
--port 11434
--host 127.0.0.1
-ngl 99
warning: no usable GPU found, --gpu-layers option will be ignored
warning: one possible reason is that llama.cpp was compiled without GPU support
warning: consult docs/build.md for compilation instructions
main: embeddings enabled with n_batch (2048) > n_ubatch (512)
main: setting n_batch = n_ubatch = 512 to avoid assertion failure
main: n_parallel is set to auto, using n_parallel = 4 and kv_unified = true
build: 7968 (170f2f907) with GNU 15.2.0 for Linux x86_64
system info: n_threads = 12, n_threads_batch = 12, total_threads = 24
system_info: n_threads = 12 (n_threads_batch = 12) / 24 | CPU : SSE3 = 1 | SSSE3 = 1 | AVX = 1 | AVX_VNNI = 1 | AVX2 = 1 | F16C = 1 | FMA = 1 | BMI2 = 1 | AVX512 = 1 | AVX512_VBMI = 1 | AVX512_VNNI = 1 | AVX512_BF16 = 1 | LLAMAFILE = 1 | OPENMP = 1 | REPACK = 1 |
Running without SSL
init: using 23 threads for HTTP server
start: binding port with default address family
main: loading model
srv load_model: loading model '/home/jm/dl/nomic-ai_nomic-embed-code-Q5_K_M.gguf'
common_init_result: fitting params to device memory, for bugs during this step try to reproduce them with -fit off, or provide --verbose logs if the bug only occurs with -fit on
llama_params_fit_impl: no devices with dedicated memory found
llama_params_fit: successfully fit params to free device memory
llama_params_fit: fitting params to free memory took 0.13 seconds
llama_model_loader: loaded meta data with 60 key-value pairs and 338 tensors from /home/jm/dl/nomic-ai_nomic-embed-code-Q5_K_M.gguf (version GGUF V3 (latest))
llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
llama_model_loader: - kv 0: general.architecture str = qwen2
llama_model_loader: - kv 1: general.type str = model
llama_model_loader: - kv 2: general.name str = Tmp
llama_model_loader: - kv 3: general.size_label str = 7.1B
llama_model_loader: - kv 4: general.license str = apache-2.0
llama_model_loader: - kv 5: general.base_model.count u32 = 1
llama_model_loader: - kv 6: general.base_model.0.name str = Qwen2.5 Coder 7B Instruct
llama_model_loader: - kv 7: general.base_model.0.organization str = Qwen
llama_model_loader: - kv 8: general.base_model.0.repo_url str = https://huggingface.co/Qwen/Qwen2.5-C...
llama_model_loader: - kv 9: general.dataset.count u32 = 6
llama_model_loader: - kv 10: general.dataset.0.name str = Cornstack Python v1
llama_model_loader: - kv 11: general.dataset.0.version str = v1
llama_model_loader: - kv 12: general.dataset.0.organization str = Nomic Ai
llama_model_loader: - kv 13: general.dataset.0.repo_url str = https://huggingface.co/nomic-ai/corns...
llama_model_loader: - kv 14: general.dataset.1.name str = Cornstack Javascript v1
llama_model_loader: - kv 15: general.dataset.1.version str = v1
llama_model_loader: - kv 16: general.dataset.1.organization str = Nomic Ai
llama_model_loader: - kv 17: general.dataset.1.repo_url str = https://huggingface.co/nomic-ai/corns...
llama_model_loader: - kv 18: general.dataset.2.name str = Cornstack Java v1
llama_model_loader: - kv 19: general.dataset.2.version str = v1
llama_model_loader: - kv 20: general.dataset.2.organization str = Nomic Ai
llama_model_loader: - kv 21: general.dataset.2.repo_url str = https://huggingface.co/nomic-ai/corns...
llama_model_loader: - kv 22: general.dataset.3.name str = Cornstack Go v1
llama_model_loader: - kv 23: general.dataset.3.version str = v1
llama_model_loader: - kv 24: general.dataset.3.organization str = Nomic Ai
llama_model_loader: - kv 25: general.dataset.3.repo_url str = https://huggingface.co/nomic-ai/corns...
llama_model_loader: - kv 26: general.dataset.4.name str = Cornstack Php v1
llama_model_loader: - kv 27: general.dataset.4.version str = v1
llama_model_loader: - kv 28: general.dataset.4.organization str = Nomic Ai
llama_model_loader: - kv 29: general.dataset.4.repo_url str = https://huggingface.co/nomic-ai/corns...
llama_model_loader: - kv 30: general.dataset.5.name str = Cornstack Ruby v1
llama_model_loader: - kv 31: general.dataset.5.version str = v1
llama_model_loader: - kv 32: general.dataset.5.organization str = Nomic Ai
llama_model_loader: - kv 33: general.dataset.5.repo_url str = https://huggingface.co/nomic-ai/corns...
llama_model_loader: - kv 34: general.tags arr[str,4] = ["sentence-transformers", "sentence-s...
llama_model_loader: - kv 35: qwen2.block_count u32 = 28
llama_model_loader: - kv 36: qwen2.context_length u32 = 32768
llama_model_loader: - kv 37: qwen2.embedding_length u32 = 3584
llama_model_loader: - kv 38: qwen2.feed_forward_length u32 = 18944
llama_model_loader: - kv 39: qwen2.attention.head_count u32 = 28
llama_model_loader: - kv 40: qwen2.attention.head_count_kv u32 = 4
llama_model_loader: - kv 41: qwen2.rope.freq_base f32 = 1000000.000000
llama_model_loader: - kv 42: qwen2.attention.layer_norm_rms_epsilon f32 = 0.000001
llama_model_loader: - kv 43: qwen2.pooling_type u32 = 3
llama_model_loader: - kv 44: tokenizer.ggml.model str = gpt2
llama_model_loader: - kv 45: tokenizer.ggml.pre str = qwen2
llama_model_loader: - kv 46: tokenizer.ggml.tokens arr[str,152064] = ["!", """, "#", "$", "%", "&", "'", ...
llama_model_loader: - kv 47: tokenizer.ggml.token_type arr[i32,152064] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
llama_model_loader: - kv 48: tokenizer.ggml.merges arr[str,151387] = ["Ġ Ġ", "ĠĠ ĠĠ", "i n", "Ġ t",...
llama_model_loader: - kv 49: tokenizer.ggml.eos_token_id u32 = 151645
llama_model_loader: - kv 50: tokenizer.ggml.padding_token_id u32 = 151643
llama_model_loader: - kv 51: tokenizer.ggml.bos_token_id u32 = 151643
llama_model_loader: - kv 52: tokenizer.ggml.add_bos_token bool = false
llama_model_loader: - kv 53: tokenizer.chat_template str = {%- if tools %}\n {{- '<|im_start|>...
llama_model_loader: - kv 54: general.quantization_version u32 = 2
llama_model_loader: - kv 55: general.file_type u32 = 17
llama_model_loader: - kv 56: quantize.imatrix.file str = /models_out/nomic-embed-code-GGUF/nom...
llama_model_loader: - kv 57: quantize.imatrix.dataset str = /training_dir/calibration_datav3.txt
llama_model_loader: - kv 58: quantize.imatrix.entries_count i32 = 196
llama_model_loader: - kv 59: quantize.imatrix.chunks_count i32 = 213
llama_model_loader: - type f32: 141 tensors
llama_model_loader: - type q5_K: 168 tensors
llama_model_loader: - type q6_K: 29 tensors
print_info: file format = GGUF V3 (latest)
print_info: file type = Q5_K - Medium
print_info: file size = 4.72 GiB (5.73 BPW)
load: 0 unused tokens
load: printing all EOG tokens:
load: - 151643 ('<|endoftext|>')
load: - 151645 ('<|im_end|>')
load: - 151662 ('<|fim_pad|>')
load: - 151663 ('<|repo_name|>')
load: - 151664 ('<|file_sep|>')
load: special tokens cache size = 22
load: token to piece cache size = 0.9310 MB
print_info: arch = qwen2
print_info: vocab_only = 0
print_info: no_alloc = 0
print_info: n_ctx_train = 32768
print_info: n_embd = 3584
print_info: n_embd_inp = 3584
print_info: n_layer = 28
print_info: n_head = 28
print_info: n_head_kv = 4
print_info: n_rot = 128
print_info: n_swa = 0
print_info: is_swa_any = 0
print_info: n_embd_head_k = 128
print_info: n_embd_head_v = 128
print_info: n_gqa = 7
print_info: n_embd_k_gqa = 512
print_info: n_embd_v_gqa = 512
print_info: f_norm_eps = 0.0e+00
print_info: f_norm_rms_eps = 1.0e-06
print_info: f_clamp_kqv = 0.0e+00
print_info: f_max_alibi_bias = 0.0e+00
print_info: f_logit_scale = 0.0e+00
print_info: f_attn_scale = 0.0e+00
print_info: n_ff = 18944
print_info: n_expert = 0
print_info: n_expert_used = 0
print_info: n_expert_groups = 0
print_info: n_group_used = 0
print_info: causal attn = 1
print_info: pooling type = 3
print_info: rope type = 2
print_info: rope scaling = linear
print_info: freq_base_train = 1000000.0
print_info: freq_scale_train = 1
print_info: n_ctx_orig_yarn = 32768
print_info: rope_yarn_log_mul = 0.0000
print_info: rope_finetuned = unknown
print_info: model type = 7B
print_info: model params = 7.07 B
print_info: general.name = Tmp
print_info: vocab type = BPE
print_info: n_vocab = 152064
print_info: n_merges = 151387
print_info: BOS token = 151643 '<|endoftext|>'
print_info: EOS token = 151645 '<|im_end|>'
print_info: EOT token = 151645 '<|im_end|>'
print_info: PAD token = 151643 '<|endoftext|>'
print_info: LF token = 198 'Ċ'
print_info: FIM PRE token = 151659 '<|fim_prefix|>'
print_info: FIM SUF token = 151661 '<|fim_suffix|>'
print_info: FIM MID token = 151660 '<|fim_middle|>'
print_info: FIM PAD token = 151662 '<|fim_pad|>'
print_info: FIM REP token = 151663 '<|repo_name|>'
print_info: FIM SEP token = 151664 '<|file_sep|>'
print_info: EOG token = 151643 '<|endoftext|>'
print_info: EOG token = 151645 '<|im_end|>'
print_info: EOG token = 151662 '<|fim_pad|>'
print_info: EOG token = 151663 '<|repo_name|>'
print_info: EOG token = 151664 '<|file_sep|>'
print_info: max token length = 256
load_tensors: loading model tensors, this can take a while... (mmap = true, direct_io = false)
load_tensors: CPU_Mapped model buffer size = 4829.59 MiB
..........................................................................................
common_init_result: added <|endoftext|> logit bias = -inf
common_init_result: added <|im_end|> logit bias = -inf
common_init_result: added <|fim_pad|> logit bias = -inf
common_init_result: added <|repo_name|> logit bias = -inf
common_init_result: added <|file_sep|> logit bias = -inf
llama_context: constructing llama_context
llama_context: n_seq_max = 4
llama_context: n_ctx = 8192
llama_context: n_ctx_seq = 8192
llama_context: n_batch = 512
llama_context: n_ubatch = 512
llama_context: causal_attn = 1
llama_context: flash_attn = auto
llama_context: kv_unified = true
llama_context: freq_base = 1000000.0
llama_context: freq_scale = 1
llama_context: n_ctx_seq (8192) < n_ctx_train (32768) -- the full capacity of the model will not be utilized
llama_context: CPU output buffer size = 2.38 MiB
llama_kv_cache: CPU KV buffer size = 448.00 MiB
llama_kv_cache: size = 448.00 MiB ( 8192 cells, 28 layers, 4/1 seqs), K (f16): 224.00 MiB, V (f16): 224.00 MiB
sched_reserve: reserving ...
sched_reserve: Flash Attention was auto, set to enabled
sched_reserve: CPU compute buffer size = 320.01 MiB
sched_reserve: graph nodes = 960
sched_reserve: graph splits = 1
sched_reserve: reserve took 0.87 ms, sched copies = 1
common_init_from_params: warming up the model with an empty run - please wait ... (--no-warmup to disable)
srv load_model: initializing slots, n_slots = 4
no implementations specified for speculative decoding
slot load_model: id 0 | task -1 | speculative decoding context not initialized
slot load_model: id 0 | task -1 | new slot, n_ctx = 8192
no implementations specified for speculative decoding
slot load_model: id 1 | task -1 | speculative decoding context not initialized
slot load_model: id 1 | task -1 | new slot, n_ctx = 8192
no implementations specified for speculative decoding
slot load_model: id 2 | task -1 | speculative decoding context not initialized
slot load_model: id 2 | task -1 | new slot, n_ctx = 8192
no implementations specified for speculative decoding
slot load_model: id 3 | task -1 | speculative decoding context not initialized
slot load_model: id 3 | task -1 | new slot, n_ctx = 8192
srv load_model: prompt cache is enabled, size limit: 8192 MiB
srv load_model: use --cache-ram 0 to disable the prompt cache
srv load_model: for more info see https://github.com/ggml-org/llama.cpp/pull/16391
init: chat template, example_format: '<|im_start|>system
You are a helpful assistant<|im_end|>
<|im_start|>user
Hello<|im_end|>
<|im_start|>assistant
Hi there<|im_end|>
<|im_start|>user
How are you?<|im_end|>
<|im_start|>assistant
'
srv init: init: chat template, thinking = 0
main: model loaded
main: server is listening on http://127.0.0.1:11434
main: starting the main loop...
srv update_slots: all slots are idle
Does all this look like correct output?
Also I'm not sure how to have the plugin loaded with opencode, do I just point it at the directory? I have a plugins in ~/.opencode/plugin but they are just single file ts or js, when I put the cortex directory in there, I dont think the plugin loader recurses down directories