Lightning-AI / Lightning-AI/litgpt

UserWarning: The file size of checkpoints/microsoft/phi-4/lit_model.pth is over 4.2 GB.

Open
#1,979 1 comment 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

LitGPT compatible checkpoint is not loading the model because the converted Lit model file exceeds the size limit of 4.2 GB. How can this limit be removed or increased?

` warnings.warn(
zsh: killed ./litgpt chat microsoft/phi-4`

![Image](https://github.com/user-attachments/assets/01023ddd-d01a-4158-bcc4-ef953325542b)

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 reported ./litgpt chat microsoft/phi-4 command and the checkpoint-loading warning. Trace where the 4.2 GB limit is enforced; done means establishing a supported way to load the over-limit checkpoint or clearly documenting why it cannot be increased.

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.