Skip to content

feat: improve RAM estimation by using values from summary #5525

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

Merged
merged 1 commit into from
Jun 5, 2025

Conversation

mudler
Copy link
Owner

@mudler mudler commented May 29, 2025

Description

This PR fixes #

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Copy link

netlify bot commented May 29, 2025

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 4909aa6
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/6838c6e33845bb00083021c1
😎 Deploy Preview https://deploy-preview-5525--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 project configuration.

isFullOffload := estimatedLayers <= 0
if isFullOffload {
estimatedLayers = 0
estimatedLayers := int(availableVRAM / layerSize)

Check failure

Code scanning / gosec

integer overflow conversion uint64 -> int Error

integer overflow conversion uint64 -> int
estimatedLayers = 0
estimatedLayers := int(availableVRAM / layerSize)
if availableVRAM > estimatedVRAM {
estimatedLayers = int(availableLayers)

Check failure

Code scanning / gosec

integer overflow conversion uint64 -> int Error

integer overflow conversion uint64 -> int
@mudler mudler marked this pull request as ready for review June 5, 2025 17:16
@mudler mudler merged commit b034cff into master Jun 5, 2025
23 of 28 checks passed
@mudler mudler deleted the fix/improve_vram_estimation branch June 5, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant