Downloads · 30 days
0
johnlam90/phi3-mini-eni-specialist
phi3-mini-eni-specialist is a text generation model from johnlam90. Use it when you need the model to write or continue text. The card lists the license as mit.
This model is a second-stage fine-tuned version of johnlam90/phi3-mini-4k-instruct-alpaca-lora specialized for AWS Multi-ENI Controller knowledge using a custom dataset of 3 expert-level instructions.
Downloads · 30 days
0
Access
Public
Updated Jul 27, 2025
Repo size
45.7 MB
Likes
0
Public
Click a slice to open those files.
.safetensors45.7 MB · 100%
From the Hugging Face model README
This model is a second-stage fine-tuned version of johnlam90/phi3-mini-4k-instruct-alpaca-lora specialized for AWS Multi-ENI Controller knowledge using a custom dataset of 3 expert-level instructions.
microsoft/Phi-3-mini-4k-instruct (Base Model)
↓
johnlam90/phi3-mini-4k-instruct-alpaca-lora (Stage 1: General Instruction Following)
↓
johnlam90/phi3-mini-eni-specialist (Stage 2: AWS Multi-ENI Controller Specialist)
This model is an expert in:
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-4k-instruct", trust_remote_code=True)
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"microsoft/Phi-3-mini-4k-instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
# Load Stage 1 LoRA (Alpaca)
model = PeftModel.from_pretrained(base_model, "johnlam90/phi3-mini-4k-instruct-alpaca-lora")
# Load Stage 2 LoRA (ENI Specialist)
model = PeftModel.from_pretrained(model, "johnlam90/phi3-mini-eni-specialist", adapter_name="eni_specialist")
model.eval()
# Ask ENI-specific questions
prompt = "How does the AWS Multi-ENI Controller manage dynamic ENI provisioning?"
formatted_prompt = f'''### Instruction:
{prompt}
### Response:
'''
# Generate expert response
inputs = tokenizer(formatted_prompt, return_tensors="pt")
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=200,
do_sample=False,
eos_token_id=tokenizer.eos_token_id,
pad_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response.split("### Response:")[1].strip())
ENI Specialist Response:
The AWS Multi-ENI Controller manages dynamic ENI provisioning by automatically creating and deleting ENIs as needed. It also manages the lifecycle of ENIs, including their creation, deletion, and termination. The controller also provides a centralized management interface for monitoring and managing ENIs.
ENI Specialist Response:
The steps to deploy a 5G UPF using the AWS Multi-ENI Controller are:
- Create a VPC with a public subnet and a private subnet.
- Create a NAT Gateway in the public subnet.
- Create an Elastic Network Interface (ENI) in the private subnet.
- Create a 5G UPF in the private subnet.
- Configure the 5G UPF to use the ENI.
- Configure the 5G UPF to use the NAT Gateway.
- Configure the 5G UPF to use the VPC.
- Configure the 5G UPF to use the AWS Multi-ENI Controller.
The model demonstrates excellent specialization with:
This model showcases second-stage fine-tuning, where:
Perfect for:
This model is released under the MIT license, following the base model's licensing terms.
If you use this model, please cite:
@misc{phi3-mini-eni-specialist,
title={Phi-3 Mini ENI Specialist: AWS Multi-ENI Controller Expert},
author={johnlam90},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/johnlam90/phi3-mini-eni-specialist}
}