Skip to content

Question about Inference Time during Training #1

Description

@jingfanke

Thank you for your excellent work and for sharing this impressive project!

I encountered some efficiency issues during training and would like to ask for your advice. Specifically, the inference step seems to be extremely slow in my setup. Here's the configuration I'm using:

  • Dataset: MuSiQue
  • batch_size: 16
  • retrieval_batch_size: 32
  • Hardware: 8 × A100 (40GB)
  • Retriever model loaded on 1 GPU
  • Two Llama-3.1–8B-Instruct models loaded across the remaining 7 GPUs using data parallelism for inference

Under this setup, computing the PPL scores for one batch (16 × 32 = 512 examples) takes over 2 minutes, which becomes a significant bottleneck in training.

I wonder if you have any suggestions or recommended optimizations to reduce the inference time?

Any guidance would be greatly appreciated. Thank you again for your contributions!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions