Refactor model and training scripts: remove unused imports and add FactorizedHead class for improved modularity

This commit is contained in:
2026-01-09 12:01:52 +08:00
parent c70c3cd71e
commit aff0fe480b
2 changed files with 91 additions and 36 deletions

View File

@@ -16,11 +16,6 @@ import math
import sys
from dataclasses import asdict, dataclass, field
from typing import Literal, Sequence
from pathlib import Path
_PROJECT_ROOT = Path(__file__).resolve().parent
if str(_PROJECT_ROOT) not in sys.path:
sys.path.insert(0, str(_PROJECT_ROOT))
@dataclass