Spaces:
Runtime error
Runtime error
Download src/models/entity.py from Logisx/EssayEvaluation: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/spaces/Logisx/EssayEvaluation/resolve/main/src/models/entity.py
- Command line
-
hf download hf://spaces/Logisx/EssayEvaluation/src/models/entity.py
-
curl -L -o entity.py https://huggingface.co/spaces/Logisx/EssayEvaluation/resolve/main/src/models/entity.py
1.18 kB
| from dataclasses import dataclass | |
| from pathlib import Path | |
| class ModelTrainerConfig: | |
| root_dir: Path | |
| data_path: Path | |
| base_model: str | |
| training_name: str | |
| upload_from_hf: bool | |
| hf_model_name: str | |
| class LoraParameters: | |
| r: int | |
| target_modules: list | |
| lora_alpha: float | |
| lora_dropout: float | |
| bias: str | |
| task_type: str | |
| class BitsAndBytesParameters: | |
| load_in_4bit: bool | |
| bnb_4bit_quant_type: str | |
| bnb_4bit_use_double_quant: bool | |
| class TrainingArgumentsParameters: | |
| output_dir: str | |
| evaluation_strategy: str | |
| save_strategy: str | |
| num_train_epochs: float | |
| per_device_train_batch_size: int | |
| gradient_accumulation_steps: int | |
| optim: str | |
| learning_rate: float | |
| fp16: bool | |
| max_grad_norm: float | |
| warmup_ratio: float | |
| group_by_length: bool | |
| lr_scheduler_type: str | |
| class ModelPredictionConfig: | |
| data_path: Path | |
| base_model: str | |
| adapters_path: Path | |
| class ModelPredictionParameters: | |
| length_penalty: float | |
| num_beams: int | |
| max_length: int |