build: 3906 (7eee341b) with Apple clang version 15.0.0 (clang-1500.3.9.4) for arm64-apple-darwin23.6.0 llama_model_loader: loaded meta data with 35 key-value pairs and 219 tensors from salamandra-2b-instruct_Q6_K.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 = llama llama_model_loader: - kv 1: general.type str = model llama_model_loader: - kv 2: general.size_label str = 2.3B llama_model_loader: - kv 3: general.license str = apache-2.0 llama_model_loader: - kv 4: general.tags arr[str,1] = ["text-generation"] llama_model_loader: - kv 5: general.languages arr[str,36] = ["bg", "ca", "code", "cs", "cy", "da"... llama_model_loader: - kv 6: llama.block_count u32 = 24 llama_model_loader: - kv 7: llama.context_length u32 = 8192 llama_model_loader: - kv 8: llama.embedding_length u32 = 2048 llama_model_loader: - kv 9: llama.feed_forward_length u32 = 5440 llama_model_loader: - kv 10: llama.attention.head_count u32 = 16 llama_model_loader: - kv 11: llama.attention.head_count_kv u32 = 16 llama_model_loader: - kv 12: llama.rope.freq_base f32 = 10000.000000 llama_model_loader: - kv 13: llama.attention.layer_norm_rms_epsilon f32 = 0.000010 llama_model_loader: - kv 14: general.file_type u32 = 18 llama_model_loader: - kv 15: llama.vocab_size u32 = 256000 llama_model_loader: - kv 16: llama.rope.dimension_count u32 = 128 llama_model_loader: - kv 17: tokenizer.ggml.add_space_prefix bool = true llama_model_loader: - kv 18: tokenizer.ggml.model str = llama llama_model_loader: - kv 19: tokenizer.ggml.pre str = default llama_model_loader: - kv 20: tokenizer.ggml.tokens arr[str,256000] = ["", "", "", "", "<|... llama_model_loader: - kv 21: tokenizer.ggml.scores arr[f32,256000] = [-1000.000000, -1000.000000, -1000.00... llama_model_loader: - kv 22: tokenizer.ggml.token_type arr[i32,256000] = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, ... llama_model_loader: - kv 23: tokenizer.ggml.bos_token_id u32 = 1 llama_model_loader: - kv 24: tokenizer.ggml.eos_token_id u32 = 2 llama_model_loader: - kv 25: tokenizer.ggml.unknown_token_id u32 = 0 llama_model_loader: - kv 26: tokenizer.ggml.padding_token_id u32 = 0 llama_model_loader: - kv 27: tokenizer.ggml.add_bos_token bool = true llama_model_loader: - kv 28: tokenizer.ggml.add_eos_token bool = false llama_model_loader: - kv 29: tokenizer.chat_template str = {%- if not date_string is defined %}{... llama_model_loader: - kv 30: general.quantization_version u32 = 2 llama_model_loader: - kv 31: quantize.imatrix.file str = imatrix/oscar/imatrix.dat llama_model_loader: - kv 32: quantize.imatrix.dataset str = ./imatrix/oscar/imatrix-dataset.txt llama_model_loader: - kv 33: quantize.imatrix.entries_count i32 = 168 llama_model_loader: - kv 34: quantize.imatrix.chunks_count i32 = 44176 llama_model_loader: - type f32: 49 tensors llama_model_loader: - type q8_0: 24 tensors llama_model_loader: - type q6_K: 145 tensors llama_model_loader: - type bf16: 1 tensors llm_load_vocab: special_eos_id is not in special_eog_ids - the tokenizer config may be incorrect llm_load_vocab: special tokens cache size = 104 llm_load_vocab: token to piece cache size = 1.8842 MB llm_load_print_meta: format = GGUF V3 (latest) llm_load_print_meta: arch = llama llm_load_print_meta: vocab type = SPM llm_load_print_meta: n_vocab = 256000 llm_load_print_meta: n_merges = 0 llm_load_print_meta: vocab_only = 0 llm_load_print_meta: n_ctx_train = 8192 llm_load_print_meta: n_embd = 2048 llm_load_print_meta: n_layer = 24 llm_load_print_meta: n_head = 16 llm_load_print_meta: n_head_kv = 16 llm_load_print_meta: n_rot = 128 llm_load_print_meta: n_swa = 0 llm_load_print_meta: n_embd_head_k = 128 llm_load_print_meta: n_embd_head_v = 128 llm_load_print_meta: n_gqa = 1 llm_load_print_meta: n_embd_k_gqa = 2048 llm_load_print_meta: n_embd_v_gqa = 2048 llm_load_print_meta: f_norm_eps = 0.0e+00 llm_load_print_meta: f_norm_rms_eps = 1.0e-05 llm_load_print_meta: f_clamp_kqv = 0.0e+00 llm_load_print_meta: f_max_alibi_bias = 0.0e+00 llm_load_print_meta: f_logit_scale = 0.0e+00 llm_load_print_meta: n_ff = 5440 llm_load_print_meta: n_expert = 0 llm_load_print_meta: n_expert_used = 0 llm_load_print_meta: causal attn = 1 llm_load_print_meta: pooling type = 0 llm_load_print_meta: rope type = 0 llm_load_print_meta: rope scaling = linear llm_load_print_meta: freq_base_train = 10000.0 llm_load_print_meta: freq_scale_train = 1 llm_load_print_meta: n_ctx_orig_yarn = 8192 llm_load_print_meta: rope_finetuned = unknown llm_load_print_meta: ssm_d_conv = 0 llm_load_print_meta: ssm_d_inner = 0 llm_load_print_meta: ssm_d_state = 0 llm_load_print_meta: ssm_dt_rank = 0 llm_load_print_meta: ssm_dt_b_c_rms = 0 llm_load_print_meta: model type = ?B llm_load_print_meta: model ftype = Q6_K llm_load_print_meta: model params = 2.25 B llm_load_print_meta: model size = 2.36 GiB (8.99 BPW) llm_load_print_meta: general.name = n/a llm_load_print_meta: BOS token = 1 '' llm_load_print_meta: EOS token = 2 '' llm_load_print_meta: UNK token = 0 '' llm_load_print_meta: PAD token = 0 '' llm_load_print_meta: LF token = 145 '<0x0A>' llm_load_print_meta: EOT token = 5 '<|im_end|>' llm_load_print_meta: EOG token = 2 '' llm_load_print_meta: EOG token = 5 '<|im_end|>' llm_load_print_meta: max token length = 72 llm_load_tensors: ggml ctx size = 0.20 MiB llm_load_tensors: offloading 24 repeating layers to GPU llm_load_tensors: offloading non-repeating layers to GPU llm_load_tensors: offloaded 25/25 layers to GPU llm_load_tensors: Metal buffer size = 2414.85 MiB llm_load_tensors: CPU buffer size = 410.16 MiB ............................................ llama_new_context_with_model: n_ctx = 8192 llama_new_context_with_model: n_batch = 512 llama_new_context_with_model: n_ubatch = 128 llama_new_context_with_model: flash_attn = 0 llama_new_context_with_model: freq_base = 10000.0 llama_new_context_with_model: freq_scale = 1 ggml_metal_init: allocating ggml_metal_init: found device: Apple M3 Max ggml_metal_init: picking default device: Apple M3 Max ggml_metal_init: using embedded metal library ggml_metal_init: GPU name: Apple M3 Max ggml_metal_init: GPU family: MTLGPUFamilyApple9 (1009) ggml_metal_init: GPU family: MTLGPUFamilyCommon3 (3003) ggml_metal_init: GPU family: MTLGPUFamilyMetal3 (5001) ggml_metal_init: simdgroup reduction support = true ggml_metal_init: simdgroup matrix mul. support = true ggml_metal_init: hasUnifiedMemory = true ggml_metal_init: recommendedMaxWorkingSetSize = 42949.67 MB llama_kv_cache_init: Metal KV buffer size = 1536.00 MiB llama_new_context_with_model: KV self size = 1536.00 MiB, K (f16): 768.00 MiB, V (f16): 768.00 MiB llama_new_context_with_model: CPU output buffer size = 0.98 MiB llama_new_context_with_model: Metal compute buffer size = 72.00 MiB llama_new_context_with_model: CPU compute buffer size = 125.00 MiB llama_new_context_with_model: graph nodes = 774 llama_new_context_with_model: graph splits = 3 common_init_from_params: warming up the model with an empty run - please wait ... (--no-warmup to disable) system_info: n_threads = 15 (n_threads_batch = 15) / 16 | AVX = 0 | AVX_VNNI = 0 | AVX2 = 0 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | AVX512_BF16 = 0 | FMA = 0 | NEON = 1 | SVE = 0 | ARM_FMA = 1 | F16C = 0 | FP16_VA = 1 | RISCV_VECT = 0 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 0 | SSSE3 = 0 | VSX = 0 | MATMUL_INT8 = 1 | LLAMAFILE = 1 | perplexity: tokenizing the input .. perplexity: tokenization took 2982.84 ms perplexity: calculating perplexity over 134 chunks, n_ctx=8192, batch_size=512, n_seq=1 perplexity: 10.33 seconds per pass - ETA 23.05 minutes [1]17.0887,[2]17.2480,[3]15.6987,[4]15.5118,[5]14.8759,[6]14.4395,[7]15.3085,[8]14.7978,[9]14.5196,[10]13.8181,[11]14.4324,[12]14.4902,[13]15.5116,[14]15.7730,[15]15.7587,[16]16.2866,[17]16.5783,[18]16.4829,[19]16.5246,[20]16.8268,[21]16.8668,[22]14.8923,[23]15.0668,[24]14.6984,[25]14.1937,[26]13.7606,[27]13.5739,[28]13.4024,[29]13.3543,[30]13.1542,[31]13.3851,[32]13.4915,[33]13.9573,[34]14.2558,[35]14.5529,[36]14.3232,[37]14.3131,[38]14.3892,[39]14.2419,[40]14.2755,[41]14.2509,[42]14.0670,[43]14.0165,[44]14.1783,[45]14.3806,[46]14.2373,[47]14.4687,[48]14.5800,[49]14.8482,[50]15.1185,[51]15.1519,[52]15.3580,[53]15.6689,[54]15.9795,[55]16.0855,[56]15.9232,[57]15.8291,[58]15.5654,[59]15.4625,[60]15.2742,[61]15.3247,[62]15.4560,[63]15.6365,[64]15.6977,[65]15.7257,[66]15.9087,[67]15.8832,[68]15.7747,[69]15.6368,[70]15.5331,[71]15.5278,[72]15.4735,[73]15.4829,[74]15.4266,[75]15.4001,[76]15.3404,[77]15.3975,[78]15.3973,[79]15.4064,[80]15.4421,[81]15.1622,[82]15.1410,[83]15.0137,[84]15.0454,[85]15.0923,[86]15.2814,[87]15.3044,[88]15.4548,[89]15.5065,[90]15.6281,[91]15.6818,[92]15.5223,[93]15.5863,[94]15.5742,[95]15.7075,[96]15.8941,[97]15.9685,[98]16.0622,[99]16.1972,[100]16.2384,[101]16.2648,[102]16.2268,[103]16.1987,[104]16.1825,[105]16.1692,[106]16.0437,[107]15.9193,[108]15.9790,[109]15.9957,[110]15.9096,[111]15.8740,[112]15.7284,[113]15.5919,[114]15.5862,[115]15.5609,[116]15.5698,[117]15.4663,[118]15.3402,[119]15.3331,[120]15.3912,[121]15.4059,[122]15.4282,[123]15.4624,[124]15.4779,[125]15.4721,[126]15.4969,[127]15.5206,[128]15.5981,[129]15.5883,[130]15.5662,[131]15.6214,[132]15.5974,[133]15.5429,[134]15.3961, Final estimate: PPL = 15.3961 +/- 0.06268 llama_perf_context_print: load time = 1468.10 ms llama_perf_context_print: prompt eval time = 1381353.52 ms / 1097728 tokens ( 1.26 ms per token, 794.68 tokens per second) llama_perf_context_print: eval time = 0.00 ms / 1 runs ( 0.00 ms per token, inf tokens per second) llama_perf_context_print: total time = 1422214.42 ms / 1097729 tokens ggml_metal_free: deallocating