Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log O AIModels config on startup #3031

Merged
merged 1 commit into from Apr 24, 2024

Conversation

eliteprox
Copy link
Contributor

What does this pull request do? Explain your changes. (required)
This change logs each advertised capability, model and price from the aiModels config when log level of info or debug is used.

Sample log lines:

I0423 23:44:26.940464  544271 starter.go:601] Capability text-to-image (ID: 27) advertised with model constraint ByteDance/SDXL-Lightning at price 4768371 per 1 unit
I0423 23:44:26.940511  544271 starter.go:601] Capability image-to-image (ID: 28) advertised with model constraint ByteDance/SDXL-Lightning at price 4768371 per 1 unit
I0423 23:44:26.940530  544271 starter.go:601] Capability image-to-video (ID: 29) advertised with model constraint stabilityai/stable-video-diffusion-img2vid-xt-1-1 at price 3390842 per 1 unit

Specific updates (required)

  • Updates starter.go, adding a new log line after the aiModels.json config is loaded when -v 6 is used.

How did you test each of these updates (required)

  • Loaded go-livepeer in orchestrator mode with -aiWorker and -aiModels config containing multiple models with different prices. Log result is shown above.

Does this pull request close any open issues?

Checklist:

@github-actions github-actions bot added the AI Issues and PR related to the AI-video branch. label Apr 24, 2024
Copy link
Contributor

@rickstaa rickstaa left a comment

Choose a reason for hiding this comment

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

Fantastic! It even includes more information than I asked for 🚀!

@rickstaa rickstaa merged commit ea82cde into livepeer:ai-video Apr 24, 2024
8 of 10 checks passed
@eliteprox eliteprox deleted the develop-log-aimodels branch April 25, 2024 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AI Issues and PR related to the AI-video branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants