mirror of
https://github.com/deepseek-ai/DeepSeek-V3.git
synced 2026-11-05 00:47:48 +00:00
[GH-ISSUE #4] Converted bf16 Model on Hugging Face #3
Labels
No labels
closed-as-stale
enhancement
question
spam
stale
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-V3#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @OpenSourceRonin on GitHub (Dec 26, 2024).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-V3/issues/4
I've uploaded the converted bf16 model here for everyone to use freely: https://huggingface.co/collections/opensourcerelease/deepseek-v3-bf16-676d7fa1b3f500d39f8f559b
@samyon7 commented on GitHub (Dec 30, 2024):
Do you build this model purely using the code? Would you give me the full documentation so you can upload to huggingface with the transformers safetensor formats? I don't get anywhere how to do it. Thankyouu :)<
@OpenSourceRonin commented on GitHub (Dec 30, 2024):
We have uploaded converted models at here https://huggingface.co/collections/opensourcerelease/deepseek-v3-bf16-676d7fa1b3f500d39f8f559b
@samyon7 commented on GitHub (Dec 30, 2024):
I mean, how you convert from pytorch format into safetensor formats? Any documentation there?
@OpenSourceRonin commented on GitHub (Dec 31, 2024):
@wacyfdyy commented on GitHub (Feb 6, 2025):
Hello, do I need at least the size of the bf16 model GPU memory to convert successfully? How many GPUs did you use to convert the weights of bf16,thanku
@ehuaa commented on GitHub (Feb 7, 2025):
Can this conversion be operationed on A100 cards?
@gkm0120 commented on GitHub (Feb 10, 2025):
I'm trying to convert deepseek v3 using A100
but got
assert builder.options.allow_fp8e4nv, "fp8e4nv data type is not supported on CUDA arch < 89"
AssertionError: fp8e4nv data type is not supported on CUDA arch < 89
@ehuaa commented on GitHub (Feb 10, 2025):
Is the error happens in https://github.com/deepseek-ai/DeepSeek-V3/blob/main/inference/kernel.py#L78 here? maybe triton cannot support tl.load an fp8 tensor in A100 @gkm0120
@wptoux commented on GitHub (Feb 14, 2025):
github.com/deepseek-ai/DeepSeek-V3@2f7b80eece/inference/fp8_cast_bf16.py (L80)I tried changing
to
and then the conversion code seems to work now on A100.
@PokeLu commented on GitHub (Mar 10, 2025):
I tried your solution and it worked well on A800. Does this change has any influnece on the converting precison or exactly the same as the original script?
@wptoux commented on GitHub (Mar 14, 2025):
The purpose of the code is to convert FP8 weights to 32-bit float before computation, which should be lossless in PyTorch. After testing the converted model, I observed no noticeable precision loss.
@Lynnzake commented on GitHub (Apr 3, 2025):
Got Similar problem when i run code on A800,
but after following the solution of @wptoux , it worked.
Although problem solved, but I questioned why this could work, and why we do this kind of change?
@github-actions[bot] commented on GitHub (May 5, 2025):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this issue is still relevant, please leave a comment to keep it open. Thank you for your contributions!
@github-actions[bot] commented on GitHub (May 19, 2025):
false