Add demo scripts#4
Merged
Merged
Conversation
smilingday
reviewed
May 7, 2026
|
|
||
| # --- 2. Run Gemma4 Generative LLM Model --- | ||
| run_case "Run Gemma4: Generative inference with custom prompt" \ | ||
| litert lm run gemma-4-E2B-it.litertlm --prompt "Explain machine learning in one sentence." |
Collaborator
There was a problem hiding this comment.
This might be not working, if you don't have models above.
But this should work:
litert lm run
--from-huggingface-repo=litert-community/gemma-4-E2B-it-litert-lm
gemma-4-E2B-it.litertlm
--prompt="What is the capital of France?"
Basically we can replace the examples below from "litert-lm", to "litert lm":
https://ai.google.dev/edge/litert-lm/cli
smilingday
reviewed
May 7, 2026
smilingday
left a comment
Collaborator
There was a problem hiding this comment.
Maybe
put those under:
test_scripts/models/, like:
- test_scripts/models/restnet.sh
- test_scripts/models/yamnet.sh
Later, we can oranize a new folders like:
test_scripts/commands/, like:
- test_scripts/commands/convert.sh
- test_scripts/commands/run.sh (with most comphrensive commands)
Collaborator
Author
|
Moved to test_scripts/models. |
smilingday
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add demo scripts for models: