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
To monitor CPU and GPU memory usage by Ollama models from the shell, you can use several approaches:
For GPU Memory (NVIDIA GPUs):
nvidia-smiThis shows real-time GPU memory usage. To monitor continuously:
watch -n 1 nvidia-smiFor a more focused view showing just the Ollama process:
nvidia-smi | grep ollamaFor CPU Memory:
To see Ollama's CPU memory usage:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.