Downloads · 30 days
12
12% of all-time downloads
faisalsns/phi3-finetuned-electric-rates
phi3-finetuned-electric-rates is a text generation model from faisalsns. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This model is a fine-tuned version of microsoft/phi-3-mini-4k-instruct on a structured dataset containing U.S. electric utility rate data. The training dataset was sourced from data.gov and reformatted into instructio…
Downloads · 30 days
12
12% of all-time downloads
All-time downloads
100
Public
Parameters
3.8B
15.3 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors15.3 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of microsoft/phi-3-mini-4k-instruct on a structured dataset containing U.S. electric utility rate data. The training dataset was sourced from data.gov and reformatted into instruction-based examples for instruction-following language modeling.
This model is capable of answering natural language questions such as:
"What is the residential electricity rate for PG&E in California?"
It is trained on structured tabular data in natural language format and can be useful for:
microsoft/phi-3-mini-4k-instructiou_zipcodes_2020.csv and non_iou_zipcodes_2020.csvEach training sample was structured as follows:
{
"instruction": "What is the residential electricity rate for PG&E in California?",
"input": "Zip: 94103, Utility: PG&E, State: CA, Service Type: Residential, Ownership: IOU",
"output": "The residential rate is $0.21 per kWh."
}
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_path = "your-username/phi3-finetuned-electric-rates"
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True)
prompt = """### Instruction:
What is the residential electricity rate for PG&E in California?
### Response:"""
inputs = tokenizer(prompt, return_tensors="pt")
with torch.no_grad():
output = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(output[0], skip_special_tokens=True))
## 👤 Author
Trained and uploaded by [Faisal Syed].
For feedback or questions, contact [[email protected]] or open an issue on the repo.