This is a fine-tuned version of DeepSeek-R1-Distill-Llama-8B, optimized for telecom-related queries. The model has been fine-tuned to provide concise and factual answers, ensuring that it does role-play as a customer service agent.
Developed by: Mohamed Abdulaziz
Model type: Fine-tune-DeepSeek-R1-Distill-Llama-8B
Framework Used: Unsloth for fine tuning and wandb for performance monitoring
License: MIT License
Uses
This model is designed for customer support automation in the telecom industry. It assists in:
Answering common user queries about 5G, network issues, billing, and services.
Providing concise and factually correct responses.
Reducing workload on human support agents by handling routine inquiries.
Who can use this model?
Telecom companies: Automate customer service via chatbots.
Developers & researchers: Fine-tune and adapt for different use cases.
Call centers: Support agents in handling user requests efficiently.
Who might be affected?
End-users interacting with telecom chatbots.
Support agents using AI-assisted tools.
Developers & data scientists fine-tuning and deploying the model.
1model, tokenizer = FastLanguageModel.from_pretrained(2 model_path,3 max_seq_length=1024,# training length equal to 2048 but you can choose less than that to avoid OOM4 dtype=None# Uses default precision5)
4️⃣ Optimize model for fast inference with Unsloth
model = FastLanguageModel.for_inference(model)
5️⃣ Move model to GPU if available, otherwise use CPU
6️⃣ Define system instruction to guide model responses
python
1system_instruction ="""You are an AI assistant. Answer user questions concisely and factually.
2Do NOT role-play as a customer service agent. Only answer the user's query."""
7️⃣ Define user input (Replace with any query)
user_input = "What are the benefits of 5G?"
8️⃣ Construct full prompt with instructions and user query
The chatbot was evaluated using Meta-Llama-3.3-70B-Instruct, assessing relevance, correctness, and fluency of its responses.
Results
Meta-Llama-3.3-70B-Instruct Evaluation:
Relevance: 9/10
The response is highly relevant to the user’s query about 5G benefits, providing a concise and informative summary.
Correctness: 10/10
The response is factually accurate, highlighting key advantages such as faster data speeds, lower latency, increased capacity, and broader device compatibility.
Fluency: 9/10
The response is well-structured, grammatically sound, and easy to understand. Minor refinements could further enhance readability.