Skip to content

Add demo scripts#4

Merged
copybara-service[bot] merged 3 commits into
mainfrom
add_demo_scripts
May 8, 2026
Merged

Add demo scripts#4
copybara-service[bot] merged 3 commits into
mainfrom
add_demo_scripts

Conversation

@junjiang-lab

Copy link
Copy Markdown
Collaborator

Add demo scripts for models:

  • EfficientNet
  • ResNet
  • YamNet
  • Gemma4

Comment thread test_scripts/demo_gemma4.sh Outdated

# --- 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."

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

DONE

@smilingday smilingday left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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)

@junjiang-lab

Copy link
Copy Markdown
Collaborator Author

Moved to test_scripts/models.

@junjiang-lab junjiang-lab requested a review from smilingday May 7, 2026 22:39
@copybara-service copybara-service Bot merged commit 85635af into main May 8, 2026
26 of 31 checks passed
@junjiang-lab junjiang-lab deleted the add_demo_scripts branch May 11, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants