Skip to content

Simultaneous GPU and CPU Usage with Llama Models #3

Description

@jinzurei

Description

Current setup prevents using GPU and CPU simultaneously for Llama model inference, limiting performance. We need support for heterogeneous computing (multi-device inference) to distribute workloads across GPU (for parallel tasks) and CPU (for sequential or memory-intensive ops), but it's not supported in our implementation.

Motivation

Improve efficiency and speed for Ignis by leveraging both devices, reducing bottlenecks in model loading and inference.

Proposed Implementation

  • Investigate libraries like Accelerate or custom CUDA/CPU scheduling.
  • Modify inference pipeline to split tasks (e.g., GPU for matrix ops, CPU for preprocessing).
  • Test with small Llama models first.

Tasks

  • Research heterogeneous computing options for Llama.
  • Prototype multi-device setup.
  • Benchmark performance gains.

Labels

bug, help-wanted, gpu, performance

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions