Phi-2 Merged Model: Environmental Emission Factors

This model is a merged version of Microsoft's Phi-2 fine-tuned using LoRA adapters on a custom instruction dataset focused on environmental emission factors.

πŸ“Œ Use Cases

  • Query emission factors for different energy sources by country or region
  • Develop mobile or web-based environmental awareness tools
  • Educational and research applications around climate data

🧠 Model Architecture

  • Base Model: microsoft/phi-2
  • Fine-tuning: LoRA (Low-Rank Adaptation)
  • Merged: LoRA weights merged into base model using PeftModel.merge_and_unload()

πŸš€ Usage

Example Python code to generate responses:

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("Surendra-Aitest/phi2-env-factors-merged")

tokenizer = AutoTokenizer.from_pretrained("Surendra-Aitest/phi2-env-factors-merged")

prompt = "What is the CO2 emission factor for biomass energy in Germany?"

inputs = tokenizer(prompt, return_tensors="pt")

outputs = model.generate(**inputs, max_new_tokens=100)

print(tokenizer.decode(outputs[0]))

πŸ“‚ Files Included

  • model-00001-of-00002.safetensors and model-00002-of-00002.safetensors
  • tokenizer.json, tokenizer_config.json, vocab.json, merges.txt
  • generation_config.json, config.json

πŸ“¬ Contact

For questions, contact: Surendra-Aitest

Downloads last month
7
Safetensors
Model size
2.78B params
Tensor type
FP16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support