Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion litgpt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from pathlib import Path
from typing import Any, List, Literal, Optional, Type, Union

import torch
import yaml
from typing_extensions import Self

Expand Down Expand Up @@ -185,6 +184,8 @@ def norm_class(self) -> Type:

from functools import partial

import torch # Torch import is lazy to make config loading faster

if self.norm_class_name == "RMSNorm":
from litgpt.model import RMSNorm

Expand Down
Loading