Text Generation
Transformers
Safetensors
English
qwen2
llms
code
Java
code-smells
conversational
text-generation-inference
How to use from
SGLangUse Docker images
docker run --gpus all \
--shm-size 32g \
-p 30000:30000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=<secret>" \
--ipc=host \
lmsysorg/sglang:latest \
python3 -m sglang.launch_server \
--model-path "codeaidbackUp/OldCouplingSmellsDetectionModel" \
--host 0.0.0.0 \
--port 30000# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "codeaidbackUp/OldCouplingSmellsDetectionModel",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'Quick Links
CodeAid Coupling Smells Detection Model (Qwen2.5-14B-Instruct Fine-Tuned)
This model is a fine-tuned version of Qwen2.5-14B-Instruct, specialized for detecting coupling smells in Java code. It was developed as part of the CodeAid project to assist developers in identifying code quality issues directly in their IDE.
🧠Model Purpose
The model identifies coupling-related code smells such as:
- Feature Envy
- Inappropriate Intimacy
- Message Chains
- Excessive Dependencies
It analyzes Java classes and their dependencies to detect architectural or design issues that increase coupling and reduce maintainability.
🔧 Technical Details
- Base Model: Qwen2.5-14B-Instruct
- Fine-Tuning Method: QLoRA with LoRA adapters merged
- Format:
safetensors(merged) - Task Type: Text generation (instruction-based)
- Downloads last month
- 5
Install from pip and serve model
# Install SGLang from pip: pip install sglang# Start the SGLang server: python3 -m sglang.launch_server \ --model-path "codeaidbackUp/OldCouplingSmellsDetectionModel" \ --host 0.0.0.0 \ --port 30000# Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "codeaidbackUp/OldCouplingSmellsDetectionModel", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'