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

Unexpected CUDA out of memory for minimal example #819

Open
rwesterteiger opened this issue Oct 3, 2024 · 0 comments
Open

Unexpected CUDA out of memory for minimal example #819

rwesterteiger opened this issue Oct 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rwesterteiger
Copy link

Description

Loading a simple quantized GGUF model with CUDA fails with:
Error: DriverError(CUDA_ERROR_OUT_OF_MEMORY, "out of memory")

log.txt

Environment

  • Linux Mint 21.3 Virginia
  • GeForce RTX 2060 SUPER (8 GiB VRAM)
  • CUDA 12.6

When running the sample below, less than 1 GiB of VRAM was occupied.

Sample code

    let model = GgufModelBuilder::new(
        "bartowski/Meta-Llama-3.1-8B-Instruct-GGUF",
        vec![ "Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf"])
    .build()
    .await?;

Versions used

  • Rust toolchain:
    • stable-x86_64-unknown-linux-gnu (default)
    • rustc 1.81.0 (eeb90cda1 2024-09-04)

Cargo.toml.txt

@rwesterteiger rwesterteiger added the bug Something isn't working label Oct 3, 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

No branches or pull requests

1 participant