Skip to content

CUDA: enable option for F16 with LLAMA_HIPBLAS - #3085

Closed
jammm wants to merge 1 commit into
ggml-org:masterfrom
jammm:hip_f16
Closed

jammm wants to merge 1 commit into
ggml-org:masterfrom
jammm:hip_f16

Conversation

@jammm

@jammm jammm commented Sep 8, 2023 •

Copy link
Copy Markdown
Contributor

With -DLLAMA_CUDA_F16=ON

Device 0: AMD Radeon RX 7900 XTX, compute capability 11.0

model size params backend ngl test t/s
LLaMA v2 7B mostly Q4_0 3.56 GiB 6.74 B ROCm 99 pp 512 1668.06 ± 22.24
LLaMA v2 7B mostly Q4_0 3.56 GiB 6.74 B ROCm 99 tg 128 116.04 ± 0.18

Without -DLLAMA_CUDA_F16=ON

Device 0: AMD Radeon RX 7900 XTX, compute capability 11.0

model size params backend ngl test t/s
LLaMA v2 7B mostly Q4_0 3.56 GiB 6.74 B ROCm 99 pp 512 1653.26 ± 19.46
LLaMA v2 7B mostly Q4_0 3.56 GiB 6.74 B ROCm 99 tg 128 115.49 ± 1.08

@jammm

jammm commented Sep 8, 2023

Copy link
Copy Markdown
Contributor Author

Seems to give garbage results on 13b. Closing until a solution can be figured out.

@jammm jammm closed this Sep 8, 2023
@ardfork

ardfork commented Sep 8, 2023

Copy link
Copy Markdown
Contributor

I mean the solution is just to do the same as I did with all the half2 call, I just didn't bother with those because Johannes told me that it won't have any speed or ram usage difference.

@jammm

jammm commented Sep 9, 2023

Copy link
Copy Markdown
Contributor Author

I mean the solution is just to do the same as I did with all the half2 call, I just didn't bother with those because Johannes told me that it won't have any speed or ram usage difference.

Did f16 help with performance on CUDA?

@pomoke

pomoke commented Sep 22, 2023

Copy link
Copy Markdown

For Baichuan-7b-chat, it's sensible within answer, however, the answer has no relation to question. For Baichuan-7b, it completes prompt terribly, with a lot of repetition.

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.

3 participants