Skip to content

docs: update examples configuration#231

Merged
github-actions[bot] merged 1 commit into
llm-d:mainfrom
sagearc:update-examples
Dec 26, 2025
Merged

docs: update examples configuration#231
github-actions[bot] merged 1 commit into
llm-d:mainfrom
sagearc:update-examples

Conversation

@sagearc
Copy link
Copy Markdown
Collaborator

@sagearc sagearc commented Dec 24, 2025

Update examples to configure the model name in the tokenization pool configuration.
ref: #192

Copilot AI review requested due to automatic review settings December 24, 2025 12:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates example configurations to set the ModelName field in TokenizersPoolConfig, aligning with the changes introduced in PR #192 which refactored tokenizer initialization to load tokenizers once at pool initialization based on the base model name.

Key Changes:

  • Added ModelName configuration to tokenizer pool setup across all examples
  • Ensures tokenizer initialization has the required model name parameter

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
examples/valkey_example/main.go Sets ModelName to testdata.ModelName constant in Valkey configuration
examples/kv_events/offline/main.go Sets ModelName to testdata.ModelName constant for offline events example
examples/kv_cache_index/main.go Sets ModelName using getModelName() function which provides env var override with fallback
examples/kv_cache_aware_scorer/kvcache_aware_scorer.go Sets ModelName from MODEL_NAME environment variable with validation
examples/helper/indexer.go Sets ModelName to testdata.ModelName constant in helper configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vMaroon
Copy link
Copy Markdown
Member

vMaroon commented Dec 26, 2025

/lgtm
/approve

@github-actions github-actions Bot added the lgtm Looks good to me, indicates that a PR is ready to be merged. label Dec 26, 2025
@github-actions github-actions Bot merged commit 1459569 into llm-d:main Dec 26, 2025
9 of 10 checks passed
@sagearc sagearc deleted the update-examples branch December 27, 2025 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Looks good to me, indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants