Skip to content

ggml llama: align structs for memory optimization on 64-bit platforms: #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2024

Conversation

Nexesenex
Copy link
Owner

  • ggml_type_traits_t (80 -> 72 bytes)
  • llama_batch (72 -> 64 bytes)
  • llama_model_params (56 -> 48 bytes)
  • hash_node (32 -> 24 bytes)
  • ggml_compute_state (32 -> 24 bytes)
  • gguf_tensor_info (88 -> 80 bytes)

- ggml_type_traits_t (80 -> 72 bytes)
- llama_batch (72 -> 64 bytes)
- llama_model_params (56 -> 48 bytes)
- hash_node (32 -> 24 bytes)
- ggml_compute_state (32 -> 24 bytes)
- gguf_tensor_info (88 -> 80 bytes)
@Nexesenex Nexesenex merged commit dec7622 into Nexesenex:sidestream May 15, 2024
27 of 33 checks passed
Nexesenex pushed a commit that referenced this pull request Dec 22, 2024
* Adding q8_0_r4

We get PP-512(LLaMA-3.1-8B) = 268 t/s on a Ryzen-7950X compared
to 175.6 t/s for Q8_0.

* q8_0_r4: NEON

We get PP-512(LLaMA-3.1-8B) = 112.6 t/s on M2-Max.

* q8_0_r4: Zen4 matrix-vector specialization

---------

Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants