Downloads · 30 days
4
11% of all-time downloads
johnlam90/phi3-mini-5g-faults-specialist
phi3-mini-5g-faults-specialist is a text generation model from johnlam90. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
This model is a specialized fine-tuned version of johnlam90/phi3-mini-eni-specialist that has been further trained on 5G network fault diagnosis scenarios. It combines the general ENI (Evolved Network Intelligence) do…
Downloads · 30 days
4
11% of all-time downloads
All-time downloads
37
Public
Repo size
60.8 MB
Likes
0
Public
Click a slice to open those files.
.safetensors60.8 MB · 94%
From the Hugging Face model README
This model is a specialized fine-tuned version of johnlam90/phi3-mini-eni-specialist that has been further trained on 5G network fault diagnosis scenarios. It combines the general ENI (Evolved Network Intelligence) domain expertise of the base model with specialized knowledge for diagnosing and troubleshooting 5G network issues.
This model specializes in:
5G RAN (Radio Access Network) Issues
5G Core Network Problems
5G Handover Issues
5G Network Slicing
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch
# 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 fine-tuned model
model = PeftModel.from_pretrained(
base_model,
"johnlam90/phi3-mini-5g-faults-specialist",
torch_dtype=torch.bfloat16
)
# Format prompt
def format_prompt(instruction, input_text=""):
if input_text.strip():
return f"### Instruction:\n{instruction}\n\n### Input:\n{input_text}\n\n### Response:\n"
else:
return f"### Instruction:\n{instruction}\n\n### Response:\n"
# Example usage
instruction = "Diagnose the following 5G network issue and provide troubleshooting steps."
input_text = "User reports unable to connect to 5G network. Device shows 'No Service' despite being in a 5G coverage area."
prompt = format_prompt(instruction, input_text)
inputs = tokenizer(prompt, return_tensors="pt")
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=256,
temperature=0.7,
do_sample=True,
pad_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True)
print(response)
5G RAN Connection Issue:
Input: "User reports unable to connect to 5G network. Device shows 'No Service' despite being in a 5G coverage area."
Output: "This could be due to several reasons:
1. Check if the device's 5G feature is activated. If not, enable it.
2. Reboot the device to refresh network connections.
3. Verify the device is not in Airplane Mode or has connectivity restrictions turned on.
4. Check if the network provider has issued a service outage.
5. If possible, try connecting to a different 5G network to determine if the issue is device-specific or network-specific."
5G Core Network Latency:
Input: "5G network experiencing high latency (>100ms) during peak hours. Users report slow data speeds and connection timeouts."
Output: "To address the high latency in the 5G network during peak hours, consider the following solutions:
1. Network optimization: Review and optimize the network configuration, including resource allocation and traffic prioritization.
2. Capacity planning: Assess the network's capacity to handle peak traffic volumes, and if necessary, increase the number of cell sites.
3. Traffic management: Implement traffic shaping and prioritization techniques to manage congestion.
4. Load balancing: Distribute user traffic evenly across multiple base stations to prevent overloading."
The model demonstrates strong performance in 5G fault diagnosis scenarios:
This model is designed for technical troubleshooting and should be used by qualified network engineers and technicians. Users should validate all recommendations against their specific network configurations and safety protocols.
If you use this model, please cite:
@misc{phi3-5g-faults-specialist,
title={Phi-3 Mini 5G Faults Specialist},
author={johnlam90},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/johnlam90/phi3-mini-5g-faults-specialist}
}
This model is released under the MIT License, following the licensing of the base models.