Text Generation
Transformers
Safetensors
qwen3_5
image-text-to-text
code-generation
coding-assistant
visual-studio-code
software-development
Arabic
conversational
Instructions to use abdallah3id/ABD3ID-CodeMentor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use abdallah3id/ABD3ID-CodeMentor with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="abdallah3id/ABD3ID-CodeMentor") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("abdallah3id/ABD3ID-CodeMentor") model = AutoModelForMultimodalLM.from_pretrained("abdallah3id/ABD3ID-CodeMentor", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use abdallah3id/ABD3ID-CodeMentor with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "abdallah3id/ABD3ID-CodeMentor" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "abdallah3id/ABD3ID-CodeMentor", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/abdallah3id/ABD3ID-CodeMentor
- SGLang
How to use abdallah3id/ABD3ID-CodeMentor with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "abdallah3id/ABD3ID-CodeMentor" \ --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": "abdallah3id/ABD3ID-CodeMentor", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use 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 "abdallah3id/ABD3ID-CodeMentor" \ --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": "abdallah3id/ABD3ID-CodeMentor", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use abdallah3id/ABD3ID-CodeMentor with Docker Model Runner:
docker model run hf.co/abdallah3id/ABD3ID-CodeMentor
|
Download abd3id-code-test-plan.svg from abdallah3id/ABD3ID-CodeMentor: direct link, hf CLI and curl.
- Browser
- Download file 4.09 kB
-
https://huggingface.co/abdallah3id/ABD3ID-CodeMentor/resolve/main/abd3id-code-test-plan.svg
- Command line
-
hf download hf://abdallah3id/ABD3ID-CodeMentor/abd3id-code-test-plan.svg
-
curl -L -o abd3id-code-test-plan.svg https://huggingface.co/abdallah3id/ABD3ID-CodeMentor/resolve/main/abd3id-code-test-plan.svg
4.09 kB
| <svg xmlns="http://www.w3.org/2000/svg" width="1200" height="650" viewBox="0 0 1200 650" style="max-width:100%;height:auto" role="img" aria-labelledby="title description"> | |
| <title id="title">ABD3ID-CODE-16B planned test-suite distribution</title> | |
| <desc id="description">A bar chart of 60 planned test cases: 16 coding, 16 Windows, 16 browser automation, and 12 safety and reliability. These are planned cases, not completed test results.</desc> | |
| <defs> | |
| <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1"> | |
| <stop offset="0" stop-color="#081427"/> | |
| <stop offset="1" stop-color="#122440"/> | |
| </linearGradient> | |
| <linearGradient id="barBlue" x1="0" y1="0" x2="1" y2="0"> | |
| <stop offset="0" stop-color="#00b7ff"/> | |
| <stop offset="1" stop-color="#3976ff"/> | |
| </linearGradient> | |
| <linearGradient id="barGold" x1="0" y1="0" x2="1" y2="0"> | |
| <stop offset="0" stop-color="#f4a83b"/> | |
| <stop offset="1" stop-color="#ffd166"/> | |
| </linearGradient> | |
| </defs> | |
| <rect width="1200" height="650" rx="28" fill="url(#bg)"/> | |
| <text x="600" y="65" fill="#f5f8ff" font-family="Segoe UI, Arial, sans-serif" font-size="30" font-weight="700" text-anchor="middle">ABD3ID-CODE-16B · TEST PLAN</text> | |
| <text x="600" y="102" fill="#9bb3d2" font-family="Segoe UI, Arial, sans-serif" font-size="18" text-anchor="middle">PLANNED TEST CASES BY DOMAIN · NOT EXECUTION RESULTS</text> | |
| <rect x="56" y="132" width="1088" height="62" rx="15" fill="#352d20" stroke="#9a7030"/> | |
| <text x="600" y="171" fill="#ffd782" font-family="Segoe UI, Arial, sans-serif" font-size="19" font-weight="700" text-anchor="middle">60 PLANNED CASES · TESTS NOT YET RUN · NO PASS RATE MEASURED</text> | |
| <g font-family="Segoe UI, Arial, sans-serif" font-size="18"> | |
| <text x="65" y="257" fill="#e9f1ff" font-weight="600">Coding quality</text> | |
| <text x="65" y="283" fill="#96aac7" font-size="15">C01–C16 · البرمجة</text> | |
| <rect x="360" y="237" width="640" height="30" rx="15" fill="#1d304d"/> | |
| <rect x="360" y="237" width="640" height="30" rx="15" fill="url(#barBlue)"/> | |
| <text x="1020" y="260" fill="#ffffff" font-size="20" font-weight="700">16</text> | |
| <text x="65" y="337" fill="#e9f1ff" font-weight="600">Windows controls</text> | |
| <text x="65" y="363" fill="#96aac7" font-size="15">W01–W16 · تحكم Windows</text> | |
| <rect x="360" y="317" width="640" height="30" rx="15" fill="#1d304d"/> | |
| <rect x="360" y="317" width="640" height="30" rx="15" fill="url(#barBlue)"/> | |
| <text x="1020" y="340" fill="#ffffff" font-size="20" font-weight="700">16</text> | |
| <text x="65" y="417" fill="#e9f1ff" font-weight="600">Browser automation</text> | |
| <text x="65" y="443" fill="#96aac7" font-size="15">B01–B16 · المتصفح</text> | |
| <rect x="360" y="397" width="640" height="30" rx="15" fill="#1d304d"/> | |
| <rect x="360" y="397" width="640" height="30" rx="15" fill="url(#barBlue)"/> | |
| <text x="1020" y="420" fill="#ffffff" font-size="20" font-weight="700">16</text> | |
| <text x="65" y="497" fill="#e9f1ff" font-weight="600">Safety & reliability</text> | |
| <text x="65" y="523" fill="#96aac7" font-size="15">S01–S12 · الأمان والاعتمادية</text> | |
| <rect x="360" y="477" width="640" height="30" rx="15" fill="#1d304d"/> | |
| <rect x="360" y="477" width="480" height="30" rx="15" fill="url(#barGold)"/> | |
| <text x="860" y="500" fill="#ffffff" font-size="20" font-weight="700">12</text> | |
| </g> | |
| <path d="M360 547H1000" stroke="#405573" stroke-width="2"/> | |
| <g fill="#8196b4" font-family="Segoe UI, Arial, sans-serif" font-size="14" text-anchor="middle"> | |
| <text x="360" y="573">0</text> | |
| <text x="520" y="573">4</text> | |
| <text x="680" y="573">8</text> | |
| <text x="840" y="573">12</text> | |
| <text x="1000" y="573">16 cases</text> | |
| </g> | |
| <text x="600" y="620" fill="#7186a4" font-family="Segoe UI, Arial, sans-serif" font-size="14" text-anchor="middle">Distribution of the proposed test plan only · Results must be measured and published separately</text> | |
| </svg> | |