lm-sys / lm-sys/FastChat

Fine-tuning: Can train_mem.py run on CPU

Open
#542 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
39.5k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Description

I want to fine-tuning vicuna via train_mem.py.
It requires module flash_attn, and flash_attn requires nvcc.
Based on that, I assume train_mem.py can only run on GPU.
Is my understanding right?

Anyway to fine-tuning vicuna via CPU? I don't care the training time as I don't have GPU. :-)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting train_mem.py and its dependency on flash_attn and nvcc. Determine whether CPU fine-tuning is supported or what changes would be required; done would require a confirmed CPU path or clear documentation that GPU support is required.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.