Spaces:
Sleeping
Sleeping
Download adsp/modeling/training.py from thanhnv2323/humanize-text-python: direct link, hf CLI and curl.
- Browser
- Download file 464 Bytes
-
https://huggingface.co/spaces/thanhnv2323/humanize-text-python/resolve/main/adsp/modeling/training.py
- Command line
-
hf download hf://spaces/thanhnv2323/humanize-text-python/adsp/modeling/training.py
-
curl -L -o training.py https://huggingface.co/spaces/thanhnv2323/humanize-text-python/resolve/main/adsp/modeling/training.py
464 Bytes
| """PEFT/LoRA training entrypoints.""" | |
| from __future__ import annotations | |
| from dataclasses import dataclass | |
| from pathlib import Path | |
| class PersonaTrainer: | |
| """Stub trainer that will later host PEFT fine-tuning logic.""" | |
| dataset_path: Path | |
| output_dir: Path | |
| def train(self) -> Path: | |
| model_path = self.output_dir / "persona_adapter.bin" | |
| model_path.write_text("adapter-bytes", encoding="utf-8") | |
| return model_path | |