Skip to content

Fix whitespace, add .editorconfig, add GitHub workflow - #883

Merged
sw merged 1 commit into
masterfrom
editor-config
Apr 11, 2023
Merged

sw merged 1 commit into
masterfrom
editor-config

Conversation

@prusnak

@prusnak prusnak commented Apr 10, 2023 •

Copy link
Copy Markdown
Contributor

Followup to 9d634ef

@sw

sw commented Apr 11, 2023

Copy link
Copy Markdown
Contributor

Good idea!

Maybe add these to the .editorconfig:

indent_style = space
indent_size = 4

@prusnak

prusnak commented Apr 11, 2023

Copy link
Copy Markdown
Contributor Author

Maybe add these to the .editorconfig:

I've added indent_style = space but not the indent_size = 4, since there are cases that do not follow that rule for a good reason, such as:

https://github.com/ggerganov/llama.cpp/blob/2663d2c6784ad7b77998c6874df25648d597f74b/llama.h#L85-L88

or

https://github.com/ggerganov/llama.cpp/blob/2663d2c6784ad7b77998c6874df25648d597f74b/llama.cpp#L251-L252

@prusnak
prusnak force-pushed the editor-config branch 2 times, most recently from 9025a47 to 9382756 Compare April 11, 2023 15:05
@j-f1

j-f1 commented Apr 11, 2023

Copy link
Copy Markdown
Contributor

I think adding indent_size = 4 would be reasonable here — those cases technically aren’t indentation, they’re alignment. Setting indent_size helps with when people e.g. start a new block and have to indent, since users may have a default indent size of 2 or 3 instead of 4.

@prusnak

prusnak commented Apr 11, 2023 •

Copy link
Copy Markdown
Contributor Author

those cases technically aren’t indentation, they’re alignment.

If I add it, the editorconfig-checker complains. I'll gladly update the PR if you tell me how.

@j-f1

j-f1 commented Apr 11, 2023

Copy link
Copy Markdown
Contributor

The issue for the checker is here: editorconfig-checker/editorconfig-checker#182

In the meantime, you could disable the IndentSize check.

@prusnak

prusnak commented Apr 11, 2023

Copy link
Copy Markdown
Contributor Author

In the meantime, you could disable the IndentSize check.

Implemented in 303c5ca

@sw
sw merged commit 8b67998 into master Apr 11, 2023
@prusnak
prusnak deleted the editor-config branch April 11, 2023 19:52
@slaren

slaren commented Apr 12, 2023

Copy link
Copy Markdown
Member

This forces my prompts .txt files to end with a new line, which is not great. I added this to the .editorconfig which seems to work, but we may want to consider a better solution:

[*.txt]
insert_final_newline = false

@prusnak

prusnak commented Apr 12, 2023 •

Copy link
Copy Markdown
Contributor Author

want to consider a better solution:

This works for me:

[prompts/*.txt]
insert_final_newline = unset
trim_trailing_whitespace = unset

Created a PR #908 - please test

Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
* Port of Qwen3-VL for latest ik_llama.cpp

- convert_hf_to_gguf.py - Not touched, use llama.cpp to convert model instead
- sysl and metal support for imrope not added
- Vulkan support for imrope not tested
- Code not tested

* Bugfix n_embd was declared multiple times

ikawrakow/ik_llama.cpp#883 (comment)

* Fix n_embd issue with qwen3vl

* model.output tensor not required

ikawrakow/ik_llama.cpp#883 (comment)

* Improved logic for qkv combined tensors

https://github.com/ikawrakow/ik_llama.cpp/pull/883/files/59ceaf8fcbaf28b29c96d7afb04c526e5c82c2fd#r2480395800
https://github.com/ikawrakow/ik_llama.cpp/pull/883/files/59ceaf8fcbaf28b29c96d7afb04c526e5c82c2fd#r2480398187

* Fix n_embd for merge_qkv() + cleaner code

ikawrakow/ik_llama.cpp#883 (comment)

* Revert TENSOR_NOT_REQUIRED
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
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.

4 participants