how can i check from the shell how may memory of cpu and gpu has been used by the model?
- User
how can i check from the shell how may memory of cpu and gpu has been used by the model?
Assistant
Here are several ways to monitor CPU and GPU memory usage for your Ollama model:
For GPU memory:
# NVIDIA GPUs nvidia-smi # or watch it live watch -n 1 nvidia-smi # AMD GPUs rocm-smi # or radeontop # Intel GPUs intel_gpu_topFor CPU and system memory:
# Overall system resources htop # or top # Memory usage specifically free -h # Process-specific memory for ollama ps aux | grep ollama # or get PID and check details pgrep ollama cat /proc/<PID>/status | grep -i mem
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.