Skip to content

Commit de57584

Browse files
authored
Merge branch 'ggml-org:master' into master
2 parents 7df4cf9 + 342c728 commit de57584

File tree

4 files changed

+61
-61
lines changed

4 files changed

+61
-61
lines changed

ggml/src/ggml-cpu/spacemit/ime.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,9 @@ template <typename BLOC_TYPE, int64_t INTER_SIZE, int64_t NB_COLS> class tensor_
485485
int32_t start = ith * task_per_thread;
486486
int32_t end = std::min((ith + 1) * task_per_thread, task_count);
487487
for (int32_t compute_idx = start; compute_idx < end; compute_idx++) {
488-
int32_t gemm_idx = compute_idx / block_size_m;
489-
int32_t m_idx = compute_idx % block_size_m * block_size_m;
488+
int32_t gemm_idx = compute_idx / per_gemm_block_count_m;
489+
int32_t block_idx_in_gemm = compute_idx % per_gemm_block_count_m;
490+
int32_t m_idx = block_idx_in_gemm * block_size_m;
490491
const qnbitgemm_spacemit_ime_args & data = qnbitgemm_args[gemm_idx];
491492
int32_t rows_tobe_handled = (gemm_m - m_idx) > block_size_m ? block_size_m : (gemm_m - m_idx);
492493

ggml/src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ void write_output_files() {
959959
}
960960

961961
std::string suffixes[2] = {"_f32", "_f16"};
962-
for (auto op : {"add", "sub", "mul", "div", "add_rms"}) {
962+
for (std::string op : {"add", "sub", "mul", "div", "add_rms"}) {
963963
hdr << "extern const void * " << op << "_data[2][2][2][2];\n";
964964
hdr << "extern const uint64_t " << op << "_len[2][2][2][2];\n";
965965

tools/server/public/index.html.gz

-137 Bytes
Binary file not shown.

tools/server/webui/src/lib/components/app/chat/ChatSettings/ChatSettingsDialog.svelte

Lines changed: 57 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Funnel,
55
AlertTriangle,
66
Brain,
7-
Cog,
7+
Code,
88
Monitor,
99
Sun,
1010
Moon,
@@ -88,9 +88,59 @@
8888
]
8989
},
9090
{
91-
title: 'Samplers',
91+
title: 'Sampling',
9292
icon: Funnel,
9393
fields: [
94+
{
95+
key: 'temperature',
96+
label: 'Temperature',
97+
type: 'input'
98+
},
99+
{
100+
key: 'dynatemp_range',
101+
label: 'Dynamic temperature range',
102+
type: 'input'
103+
},
104+
{
105+
key: 'dynatemp_exponent',
106+
label: 'Dynamic temperature exponent',
107+
type: 'input'
108+
},
109+
{
110+
key: 'top_k',
111+
label: 'Top K',
112+
type: 'input'
113+
},
114+
{
115+
key: 'top_p',
116+
label: 'Top P',
117+
type: 'input'
118+
},
119+
{
120+
key: 'min_p',
121+
label: 'Min P',
122+
type: 'input'
123+
},
124+
{
125+
key: 'xtc_probability',
126+
label: 'XTC probability',
127+
type: 'input'
128+
},
129+
{
130+
key: 'xtc_threshold',
131+
label: 'XTC threshold',
132+
type: 'input'
133+
},
134+
{
135+
key: 'typ_p',
136+
label: 'Typical P',
137+
type: 'input'
138+
},
139+
{
140+
key: 'max_tokens',
141+
label: 'Max tokens',
142+
type: 'input'
143+
},
94144
{
95145
key: 'samplers',
96146
label: 'Samplers',
@@ -152,68 +202,17 @@
152202
key: 'showThoughtInProgress',
153203
label: 'Show thought in progress',
154204
type: 'checkbox'
155-
},
156-
{
157-
key: 'disableReasoningFormat',
158-
label:
159-
'Show raw LLM output without backend parsing and frontend Markdown rendering to inspect streaming across different models.',
160-
type: 'checkbox'
161205
}
162206
]
163207
},
164208
{
165-
title: 'Advanced',
166-
icon: Cog,
209+
title: 'Developer',
210+
icon: Code,
167211
fields: [
168212
{
169-
key: 'temperature',
170-
label: 'Temperature',
171-
type: 'input'
172-
},
173-
{
174-
key: 'dynatemp_range',
175-
label: 'Dynamic temperature range',
176-
type: 'input'
177-
},
178-
{
179-
key: 'dynatemp_exponent',
180-
label: 'Dynamic temperature exponent',
181-
type: 'input'
182-
},
183-
{
184-
key: 'top_k',
185-
label: 'Top K',
186-
type: 'input'
187-
},
188-
{
189-
key: 'top_p',
190-
label: 'Top P',
191-
type: 'input'
192-
},
193-
{
194-
key: 'min_p',
195-
label: 'Min P',
196-
type: 'input'
197-
},
198-
{
199-
key: 'xtc_probability',
200-
label: 'XTC probability',
201-
type: 'input'
202-
},
203-
{
204-
key: 'xtc_threshold',
205-
label: 'XTC threshold',
206-
type: 'input'
207-
},
208-
{
209-
key: 'typ_p',
210-
label: 'Typical P',
211-
type: 'input'
212-
},
213-
{
214-
key: 'max_tokens',
215-
label: 'Max tokens',
216-
type: 'input'
213+
key: 'disableReasoningFormat',
214+
label: 'Show raw LLM output',
215+
type: 'checkbox'
217216
},
218217
{
219218
key: 'custom',

0 commit comments

Comments
 (0)