Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
8cc13610
"...controller/dynamocomponentdeployment_controller.go" did not exist on "dabd226727b714c77e03ba1834eef22307259123"
Unverified
Commit
8cc13610
authored
May 28, 2025
by
Hongkuan Zhou
Committed by
GitHub
May 28, 2025
Browse files
fix: correct calculation of block needed in rust kv router (#1253)
parent
9723d627
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lib/llm/src/kv_router/scheduler.rs
lib/llm/src/kv_router/scheduler.rs
+1
-1
No files found.
lib/llm/src/kv_router/scheduler.rs
View file @
8cc13610
...
@@ -325,7 +325,7 @@ impl WorkerSelector for DefaultWorkerSelector {
...
@@ -325,7 +325,7 @@ impl WorkerSelector for DefaultWorkerSelector {
tracing
::
debug!
(
"Selected worker: {worker_id}, logit: {best_logit:.3}"
);
tracing
::
debug!
(
"Selected worker: {worker_id}, logit: {best_logit:.3}"
);
// Log selection metrics
// Log selection metrics
let
total_blocks
=
std
::
cmp
::
m
in
(
request
.isl_tokens
/
block_size
,
1
)
as
u64
;
let
total_blocks
=
std
::
cmp
::
m
ax
(
request
.isl_tokens
/
block_size
,
1
)
as
u64
;
let
overlap_blocks
=
request
.overlap.scores
.get
(
&
worker_id
)
.copied
()
.unwrap_or
(
0
)
as
usize
;
let
overlap_blocks
=
request
.overlap.scores
.get
(
&
worker_id
)
.copied
()
.unwrap_or
(
0
)
as
usize
;
Ok
(
WorkerSelectionResult
{
Ok
(
WorkerSelectionResult
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment