Repository navigation
DeepSeek V4 #24162
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
DeepSeek V4 #24162
Changes from 45 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
aa0d5f4
convert: add dsv4 conversion
am17an d70705d
add basic setup
am17an d871b49
add llm_graph_input_dsv4
am17an 3735a82
add save-load state
am17an 36333ad
add sinkhorn eps - correction by @fairydreaming
am17an 5927082
add rope fix
am17an b2d36ac
cleanup dead code
am17an 67bfd0f
fix bugs
am17an 10e7f36
support pro model: added by @fairydreaming
am17an 7ab3378
remove redundant V cache
am17an b7631f0
Chat template
pwilkin 737b5a4
remove debugging leftovers
sszymczy 0fa3bb0
Add mechanism for inlining templates based on architecture
pwilkin 91920e1
s/deepseek-v4-flash/deepseek4/g
am17an f07c4a3
s/deepseek-v4-flash/deepseek4/g continued
sszymczy ea11d09
enable graph reuse
am17an 8db46cc
enable FA
am17an 76fd008
fix test llama archs
am17an 517849c
rename
am17an 5ca52d5
compatibility with antirez ds4 GGUFs
sszymczy 8ecac3a
simplified set_gguf_parameters() by calling super class method, repla…
sszymczy 21ac24d
reserve worst-case kv-cache
am17an 374d51d
revert max split inputs
am17an 4183868
address review comments
am17an 8971d84
add padding to enable FA
am17an 494591c
pad only the final value of plan.n_kv to 256
sszymczy bb632f4
remove built-in cpp chat template
ngxson 3b93912
cont: remove cpp built-in template
ngxson 0d33ad0
rm outdated test
ngxson f9f4fb3
replace ggml_view_3d() with ggml_reshape_3d()
fairydreaming 4b67acd
only support n_seq=1 for now
am17an 10214b6
remove unused var
am17an c2a4396
cont: remove unused var
am17an c7d6539
use scale bias
am17an b16391c
use correct ptr for can_reuse
am17an 411c2bc
remove gen-chat-inline-templates.py
am17an 5764dc4
simplify graph reuse
am17an 6335974
cont: cleanup
am17an 175ac85
remove unused inputs
am17an 9885fa7
enable partial checkpointing
am17an 55fdfa8
add correct shape for kq_mask + set llama_model_n_swa to 0 for dsv4
am17an 8eb9c86
precompute source_idx + add comment about dummy write
am17an 4505640
support multi-seq
am17an 344965d
remove restored_trim_pos
am17an 0b80978
use split_equal when possible
am17an ce2b545
fix indent
am17an b8983f9
address review comments
am17an fc8f11d
use LLM_KV
am17an f180ae8
fix ci
am17an File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.