Lightning-AI / Lightning-AI/litgpt

LitGPT fine-tuning Dont Use GPU

Open
#1,911 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted question
Dominant language
Python
Stars
13.7k
Forks
1.5k
Avg merge
15h 37m
Merged PRs (30d)
1

Description

This is the first time I have used LitGPT for fine-tuning, and as an experiment, I chose Qwen2.5-0.5B for fine-tuning.
I am Runing this on windows server 2022dc

(.env) f:\litgpt>litgpt finetune Qwen/Qwen2.5-0.5B-Instruct --data JSON --data.json_path F:\litgpt\alpaca_zh_demo.json --data.val_split_fraction 0.1 --out_dir f:\out
I found that the whole process was done using the CPU, not my GPU

![Image](https://github.com/user-attachments/assets/12730d2d-5b4c-45d6-a829-e2c7938d4f14)

I confirm that cuda12.2 is installed correctly and I can use ML Studio to use the GGUF format model.

Did I miss any settings?

Contributor guide

Open the contributing guide

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 reproducing the exact `litgpt finetune` command on Windows Server 2022 with Qwen/Qwen2.5-0.5B-Instruct and the supplied dataset. Check whether the environment and CUDA setup allow the command to select the GPU; done means identifying the cause and documenting a reproducible configuration or fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.