salamandra-2b / perplexity_Q5_K_S.txt
robbiemu's picture
update for quantization
5dadba4
raw
history blame
11 kB
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 33 key-value pairs and 219 tensors from salamandra-2b_Q5_K_S.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 = 16
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] = ["<unk>", "<s>", "</s>", "<pad>", "<|...
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.add_bos_token bool = true
llama_model_loader: - kv 27: tokenizer.ggml.add_eos_token bool = false
llama_model_loader: - kv 28: general.quantization_version u32 = 2
llama_model_loader: - kv 29: quantize.imatrix.file str = imatrix/oscar/imatrix.dat
llama_model_loader: - kv 30: quantize.imatrix.dataset str = ./imatrix/oscar/imatrix-dataset.txt
llama_model_loader: - kv 31: quantize.imatrix.entries_count i32 = 168
llama_model_loader: - kv 32: quantize.imatrix.chunks_count i32 = 44176
llama_model_loader: - type f32: 49 tensors
llama_model_loader: - type q5_1: 24 tensors
llama_model_loader: - type q5_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 = Q5_K - Small
llm_load_print_meta: model params = 2.25 B
llm_load_print_meta: model size = 2.10 GiB (8.00 BPW)
llm_load_print_meta: general.name = n/a
llm_load_print_meta: BOS token = 1 '<s>'
llm_load_print_meta: EOS token = 2 '</s>'
llm_load_print_meta: UNK token = 0 '<unk>'
llm_load_print_meta: LF token = 145 '<0x0A>'
llm_load_print_meta: EOT token = 5 '<|im_end|>'
llm_load_print_meta: EOG token = 2 '</s>'
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 = 2150.02 MiB
llm_load_tensors: CPU buffer size = 343.75 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 2903.8 ms
perplexity: calculating perplexity over 134 chunks, n_ctx=8192, batch_size=512, n_seq=1
perplexity: 12.44 seconds per pass - ETA 27.78 minutes
[1]15.6847,[2]15.6518,[3]14.2834,[4]14.1168,[5]13.5288,[6]13.1676,[7]13.8670,[8]13.3611,[9]13.1289,[10]12.5222,[11]13.1181,[12]13.1892,[13]14.1138,[14]14.3597,[15]14.3826,[16]14.8829,[17]15.1440,[18]15.0796,[19]15.1288,[20]15.4116,[21]15.4523,[22]13.6880,[23]13.8516,[24]13.5113,[25]13.0575,[26]12.6738,[27]12.5074,[28]12.3572,[29]12.3160,[30]12.1401,[31]12.3449,[32]12.4462,[33]12.8570,[34]13.1367,[35]13.4067,[36]13.2087,[37]13.2042,[38]13.2721,[39]13.1397,[40]13.1666,[41]13.1380,[42]12.9765,[43]12.9287,[44]13.0821,[45]13.2659,[46]13.1329,[47]13.3495,[48]13.4537,[49]13.7048,[50]13.9142,[51]13.9458,[52]14.1292,[53]14.4041,[54]14.6803,[55]14.7748,[56]14.6249,[57]14.5329,[58]14.2997,[59]14.2048,[60]14.0293,[61]14.0707,[62]14.1881,[63]14.3502,[64]14.3965,[65]14.4150,[66]14.5784,[67]14.5623,[68]14.4709,[69]14.3493,[70]14.2584,[71]14.2572,[72]14.2107,[73]14.2198,[74]14.1676,[75]14.1238,[76]14.0680,[77]14.1189,[78]14.1151,[79]14.1232,[80]14.1521,[81]13.9211,[82]13.9080,[83]13.7948,[84]13.8236,[85]13.8649,[86]14.0379,[87]14.0587,[88]14.1943,[89]14.2407,[90]14.3496,[91]14.3992,[92]14.2587,[93]14.3182,[94]14.3079,[95]14.4289,[96]14.5997,[97]14.6649,[98]14.7505,[99]14.8534,[100]14.8918,[101]14.9195,[102]14.8876,[103]14.8617,[104]14.8454,[105]14.8302,[106]14.7151,[107]14.6038,[108]14.6624,[109]14.6815,[110]14.6022,[111]14.5710,[112]14.4339,[113]14.3116,[114]14.3061,[115]14.2824,[116]14.2906,[117]14.1973,[118]14.0830,[119]14.0804,[120]14.1338,[121]14.1501,[122]14.1705,[123]14.2035,[124]14.2177,[125]14.2135,[126]14.2368,[127]14.2608,[128]14.3307,[129]14.3219,[130]14.3028,[131]14.3520,[132]14.3301,[133]14.2819,[134]14.1497,
Final estimate: PPL = 14.1497 +/- 0.05633
llama_perf_context_print: load time = 1300.74 ms
llama_perf_context_print: prompt eval time = 1598585.16 ms / 1097728 tokens ( 1.46 ms per token, 686.69 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 = 1657574.56 ms / 1097729 tokens
ggml_metal_free: deallocating