Comments (4)
Could you provide details on the size of the weights that you're loading as well as the memory usage that you observe?
from candle.
I ran the following command: cargo run --release --features cuda --example mistral -- --prompt "Write a 3 paragraph essay."
It exhausted the memory on a 24GB A10 after starting at a normal level in a few seconds.
from candle.
I think that the issue is likely just that you use a varmap so the model will keep track of the gradient so that you can do a backprop. Maybe you just want to use a HashMap
of tensors (and not vars), you can build var-builders out of this.
from candle.
Wow, I can't believe I didn't see that. Thank you!
from candle.
Related Issues (20)
- Qwen2: can not run with the latest Qwen2 models HOT 3
- How to Implement New Operators Using CUDA Host Functions Along with Thrust and CUB Libraries HOT 1
- Implement unfold function
- Implement torch.scatter HOT 1
- Provide a simple Stable Diffusion 3 (SD3) inference example
- Status of Apple silicon M3 GPU support?
- Quantized-t5 models on Cuda HOT 2
- WASM library examples require HTTPS
- How to select which GPU to use HOT 3
- Metal memory leak multiplying matrices HOT 3
- Is it advisable to avoid variable shadowing when using Candle?
- candle-flash-attn infinite compile time HOT 1
- Model Context Not Resetting Between Requests Leading to Invalid Responses
- Tensor not dropped after another tensor was assigned to variable in cuda HOT 3
- Mamba model is broken with `f16` precision HOT 1
- Slow YOLOv8 using MKL
- candle examples fail on cuda with CUDA_DEVICE_NO_ERROR. Device caps of 7.5 HOT 2
- Parler TTS support?
- Positional encoding in DINOv2: Case without interpolation
- new model : DINOv2 reg4 with weights from PlantCLEF 2024 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from candle.