Downloads · 30 days
5
11% of all-time downloads
harshith0214/psse-agent-gpt-oss-20b-lora
psse-agent-gpt-oss-20b-lora is a text generation model from harshith0214. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as other.
A LoRA adapter fine-tuned on GPT-OSS 20B for automated Power System State Estimation (PSSE) fault diagnosis.
Downloads · 30 days
5
11% of all-time downloads
All-time downloads
46
Public
Repo size
155 MB
Likes
0
Public
Click a slice to open those files.
.safetensors127 MB · 82%
From the Hugging Face model README
A LoRA adapter fine-tuned on GPT-OSS 20B for automated Power System State Estimation (PSSE) fault diagnosis.
Given a power system snapshot and WLS state estimation outputs (residuals r, normalized Lagrange multipliers λN), the model classifies the fault into one of four categories with high confidence.
| Property | Value |
|---|---|
| Base model | unsloth/gpt-oss-20b-unsloth-bnb-4bit |
| Architecture | GPT-OSS 20B (32-expert MoE) |
| Adapter type | LoRA (PEFT) |
| LoRA rank / alpha | 64 / 64 |
| Target modules | q/k/v/o/gate/up/down projections + MoE experts |
| Trainable parameters | 31.85M / 20.9B (0.15%) |
| Training epochs | 3 |
| Final train loss | 0.005 |
| Final eval loss | 0.005 |
| Peak GPU memory | 56 GB (H100 80GB) |
| Quantization | 4-bit (QLoRA) |
The model acts as a power-system diagnostic agent using an agentic tool-call loop:
wls_from_path on the provided snapshotr and Lagrange multipliers λNcorrect_measurements_from_path, correct_parameters_from_path, correct_topology_from_path){
"has_error": true,
"error_family": "parameter_error",
"suspect_location": {"line_row": 5, "from_bus": 3, "to_bus": 4},
"recommended_tool": "correct_parameters_from_path",
"confidence": 0.99
}
| Class | Description |
|---|---|
measurement_error | Bad sensor reading — concentrated large residuals at specific channels |
parameter_error | Incorrect line parameters — large Lagrange multipliers on a specific branch |
topology_error | Incorrect network topology — widespread residual pattern |
no_error | System healthy — residuals within normal bounds |
| Class | Precision | Recall | F1 | Support |
|---|---|---|---|---|
| measurement_error | 100.0% | 100.0% | 100.0% | 75 |
| no_error | 100.0% | 100.0% | 100.0% | 75 |
| parameter_error | 100.0% | 100.0% | 100.0% | 75 |
| topology_error | 100.0% | 100.0% | 100.0% | 71 |
| macro avg | 100.0% | 100.0% | 100.0% | 296 |
Note: Evaluated on held-out samples from the IEEE 14-bus (
case14) synthetic dataset. Out-of-distribution generalization to other grid topologies has not been evaluated.
case14, IEEE 14-bus system)error_family × tool_sequence, seed=42commentary{}/final{})from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="harshith0214/psse-agent-gpt-oss-20b-lora",
max_seq_length=16384,
dtype=None,
load_in_4bit=True,
)
FastLanguageModel.for_inference(model)
case14) synthetic test system