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

fix(p2p): parse correctly ExtraLLamaCPPArgs #4220

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Conversation

mudler
Copy link
Owner

@mudler mudler commented Nov 21, 2024

Previously we were sensible when args aren't defined and we would clash parsing extra args.

Description

This PR fixes #4214

This pull request includes an important change to the Run function in the worker_p2p.go file. The change ensures that the extraArgs variable is properly initialized and adds a debug log statement to provide better visibility into the arguments being used when starting the llama-cpp-rpc-server.

Initialization and logging improvements:

  • core/cli/worker/worker_p2p.go: Modified the initialization of the extraArgs variable to avoid splitting an empty string and added a debug log statement to log the arguments and their count when starting the llama-cpp-rpc-server.

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Previously we were sensible when args aren't defined and we would clash
parsing extra args.

Signed-off-by: Ettore Di Giacinto <[email protected]>
@mudler mudler added the bug Something isn't working label Nov 21, 2024
Copy link

netlify bot commented Nov 21, 2024

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 82c094a
🔍 Latest deploy log https://app.netlify.com/sites/localai/deploys/673f3f8481e4550008554480
😎 Deploy Preview https://deploy-preview-4220--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mudler mudler merged commit f028ee8 into master Nov 21, 2024
31 checks passed
@mudler mudler deleted the fix/p2p_extraArgs branch November 21, 2024 14:17
@mudler mudler mentioned this pull request Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

p2p inferencing not work
1 participant