salamandra-2b / perplexity_IQ2_XS.txt
robbiemu's picture
update for quantization
5dadba4
raw
history blame
11.1 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_IQ2_XS.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 = 20
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 q2_K: 25 tensors
llama_model_loader: - type iq2_xs: 120 tensors
llama_model_loader: - type iq4_nl: 24 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 = IQ2_XS - 2.3125 bpw
llm_load_print_meta: model params = 2.25 B
llm_load_print_meta: model size = 1.53 GiB (5.84 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 = 1570.06 MiB
llm_load_tensors: CPU buffer size = 164.06 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 3478.16 ms
perplexity: calculating perplexity over 134 chunks, n_ctx=8192, batch_size=512, n_seq=1
perplexity: 15.96 seconds per pass - ETA 35.63 minutes
[1]34.9404,[2]34.6958,[3]30.0052,[4]29.2369,[5]26.8994,[6]25.3379,[7]27.1825,[8]26.3701,[9]25.4663,[10]24.2554,[11]25.6934,[12]26.0935,[13]28.1094,[14]28.7080,[15]28.6540,[16]29.6618,[17]30.3065,[18]30.1441,[19]30.1152,[20]30.6789,[21]30.5087,[22]28.3449,[23]28.6020,[24]27.7921,[25]26.8425,[26]26.0164,[27]25.6699,[28]25.3155,[29]25.2281,[30]24.7246,[31]25.1799,[32]25.2834,[33]26.0382,[34]26.4411,[35]26.8751,[36]26.3118,[37]26.1942,[38]26.2207,[39]25.8016,[40]25.7588,[41]25.6840,[42]25.2359,[43]25.0339,[44]25.2856,[45]25.5783,[46]25.2785,[47]25.8240,[48]26.1499,[49]26.8844,[50]27.5255,[51]27.6702,[52]28.1894,[53]28.8494,[54]29.5385,[55]29.9039,[56]29.6160,[57]29.5083,[58]28.8857,[59]28.6173,[60]28.2344,[61]28.2517,[62]28.5516,[63]28.9279,[64]29.0123,[65]29.0125,[66]29.4308,[67]29.4098,[68]29.2161,[69]28.9547,[70]28.7637,[71]28.8445,[72]28.7801,[73]28.8223,[74]28.7516,[75]28.7897,[76]28.6796,[77]28.7647,[78]28.7506,[79]28.7663,[80]28.8322,[81]28.1633,[82]28.1329,[83]27.9001,[84]28.0305,[85]28.1735,[86]28.5952,[87]28.7677,[88]29.0924,[89]29.2445,[90]29.5324,[91]29.6628,[92]29.3539,[93]29.4667,[94]29.4106,[95]29.6803,[96]30.0553,[97]30.2232,[98]30.4258,[99]30.6488,[100]30.7624,[101]30.8171,[102]30.7541,[103]30.6574,[104]30.6135,[105]30.5325,[106]30.2642,[107]29.9520,[108]30.0747,[109]30.1217,[110]29.9328,[111]29.8744,[112]29.5994,[113]29.3077,[114]29.2695,[115]29.1747,[116]29.1442,[117]28.9108,[118]28.6469,[119]28.6216,[120]28.7487,[121]28.7978,[122]28.8588,[123]28.9727,[124]29.0322,[125]29.0591,[126]29.1098,[127]29.1701,[128]29.3254,[129]29.2921,[130]29.2334,[131]29.3480,[132]29.3011,[133]29.2104,[134]28.9052,
Final estimate: PPL = 28.9052 +/- 0.11950
llama_perf_context_print: load time = 5862.26 ms
llama_perf_context_print: prompt eval time = 2024987.11 ms / 1097728 tokens ( 1.84 ms per token, 542.09 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 = 2106404.29 ms / 1097729 tokens
ggml_metal_free: deallocating