char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Zijun Yuopenvino: OV 2026.2, context-shift, Q5_1 support, gemma4 dense/embedding, and -fa off (#24503)890f1a27e

char/aliceai-t5-moe
4.3 KiB149 linesraw
1---
2# Override root .clang-format
3AlignConsecutiveAssignments: false
4AlignConsecutiveDeclarations: false
5AccessModifierOffset: -4
6
7Language:        Cpp
8AlignAfterOpenBracket: Align
9AlignArrayOfStructures: Left
10AlignConsecutiveBitFields: AcrossComments
11AlignConsecutiveMacros: AcrossComments
12# AlignConsecutiveShortCaseStatements: AcrossComments
13AlignEscapedNewlines: Left # LeftWithLastLine
14AlignOperands:   Align
15AlignTrailingComments:
16  Kind: Always
17  OverEmptyLines: 1
18AllowAllArgumentsOnNextLine: true
19AllowAllParametersOfDeclarationOnNextLine: false
20# AllowBreakBeforeNoexceptSpecifier: OnlyWithParen
21AllowShortBlocksOnASingleLine: Never
22AllowShortCaseLabelsOnASingleLine: false
23AllowShortFunctionsOnASingleLine: Inline
24AllowShortIfStatementsOnASingleLine: Never
25AllowShortLambdasOnASingleLine: Inline
26AllowShortLoopsOnASingleLine: false
27AlwaysBreakBeforeMultilineStrings: true
28# Treat CUDA keywords/attributes as "attribute macros" and avoid breaking lines inside them
29AttributeMacros:
30  - __host__
31  - __device__
32  - __global__
33  - __forceinline__
34  - __launch_bounds__
35BinPackArguments: true
36BinPackParameters: false # OnePerLine
37BitFieldColonSpacing: Both
38# BreakAdjacentStringLiterals: true
39BreakAfterAttributes: Never
40BreakBeforeBinaryOperators: None
41BreakBeforeInlineASMColon: OnlyMultiline
42BreakBeforeTernaryOperators: false
43# BreakBinaryOperations: Never
44BreakConstructorInitializers: AfterColon
45# BreakFunctionDefinitionParameters: false
46BreakInheritanceList: AfterComma
47BreakStringLiterals: true
48# BreakTemplateDeclarations: Yes
49ColumnLimit:     120
50CommentPragmas:  '^ IWYU pragma:'
51CompactNamespaces: false
52ConstructorInitializerIndentWidth: 4
53ContinuationIndentWidth: 4
54DerivePointerAlignment: false
55DisableFormat:   false
56EmptyLineBeforeAccessModifier: Leave
57EmptyLineAfterAccessModifier: Never
58ExperimentalAutoDetectBinPacking: false
59FixNamespaceComments: true
60IncludeBlocks:   Regroup
61IncludeCategories:
62  - Regex:           '".*"'
63    Priority:        1
64    SortPriority:    0
65  - Regex:           '^<.*\.h>'
66    Priority:        2
67    SortPriority:    0
68  - Regex:           '^<.*'
69    Priority:        3
70    SortPriority:    0
71  - Regex:           '.*'
72    Priority:        4
73    SortPriority:    0
74IncludeIsMainRegex: '([-_](test|unittest))?$'
75IncludeIsMainSourceRegex: ''
76IndentAccessModifiers: false
77IndentExternBlock: NoIndent
78IndentGotoLabels: false
79IndentPPDirectives: AfterHash
80IndentWidth:     4
81IndentWrappedFunctionNames: false
82InsertBraces:    true # NOTE: may lead to incorrect formatting
83InsertNewlineAtEOF: true
84JavaScriptQuotes: Leave
85JavaScriptWrapImports: true
86KeepEmptyLinesAtTheStartOfBlocks: false
87LambdaBodyIndentation: Signature
88LineEnding: LF
89MacroBlockBegin: ''
90MacroBlockEnd:   ''
91MaxEmptyLinesToKeep: 1
92NamespaceIndentation: None
93ObjCBinPackProtocolList: Auto
94ObjCBlockIndentWidth: 4
95ObjCSpaceAfterProperty: true
96ObjCSpaceBeforeProtocolList: true
97PPIndentWidth: -1
98PackConstructorInitializers: CurrentLine
99PenaltyBreakAssignment: 2
100PenaltyBreakBeforeFirstCallParameter: 1
101PenaltyBreakComment: 300
102PenaltyBreakFirstLessLess: 120
103PenaltyBreakString: 1000
104PenaltyBreakTemplateDeclaration: 10
105PenaltyExcessCharacter: 1000000
106PenaltyReturnTypeOnItsOwnLine: 200
107PointerAlignment: Middle
108QualifierAlignment: Left
109#QualifierOrder: ['static', 'inline', 'friend', 'constexpr', 'const', 'volatile', 'type', 'restrict']
110RawStringFormats:
111  - Language:        Cpp
112    Delimiters:
113      - cc
114      - CC
115      - cpp
116      - Cpp
117      - CPP
118      - 'c++'
119      - 'C++'
120    CanonicalDelimiter: ''
121ReferenceAlignment: Middle
122ReflowComments:  false # IndentOnly
123SeparateDefinitionBlocks: Always
124SortIncludes:    CaseInsensitive
125SortUsingDeclarations: LexicographicNumeric
126SpaceAfterCStyleCast: true
127SpaceAfterLogicalNot: false
128SpaceAfterTemplateKeyword: true
129SpaceBeforeAssignmentOperators: true
130SpaceBeforeCpp11BracedList: false
131SpaceBeforeCtorInitializerColon: true
132SpaceBeforeInheritanceColon: true
133SpaceBeforeParens: ControlStatements
134SpaceBeforeRangeBasedForLoopColon: true
135SpaceInEmptyBlock: false
136SpaceInEmptyParentheses: false
137SpacesBeforeTrailingComments: 2
138SpacesInAngles:  Never
139SpacesInLineCommentPrefix:
140  Minimum: 1
141  Maximum: -1
142SpacesInParentheses: false
143SpacesInSquareBrackets: false
144SpaceBeforeSquareBrackets: false
145Standard:        c++17
146TabWidth:        4
147UseTab:          Never
148WhitespaceSensitiveMacros: ['STRINGIZE']
149...