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-workflow.svg from abdallah3id/ABD3ID-CodeMentor: direct link, hf CLI and curl.
- Browser
- Download file 6.88 kB
-
https://huggingface.co/abdallah3id/ABD3ID-CodeMentor/resolve/main/abd3id-code-workflow.svg
- Command line
-
hf download hf://abdallah3id/ABD3ID-CodeMentor/abd3id-code-workflow.svg
-
curl -L -o abd3id-code-workflow.svg https://huggingface.co/abdallah3id/ABD3ID-CodeMentor/resolve/main/abd3id-code-workflow.svg
6.88 kB
| <svg xmlns="http://www.w3.org/2000/svg" width="1500" height="700" viewBox="0 0 1500 700" style="max-width:100%;height:auto" role="img" aria-labelledby="title description"> | |
| <title id="title">ABD3ID-CODE-16B development workflow</title> | |
| <desc id="description">A coding assistant workflow from user request through code generation, human review, developer tools, and target operating systems, with app-store publishing shown as a future roadmap item.</desc> | |
| <defs> | |
| <linearGradient id="background" x1="0" y1="0" x2="1" y2="1"> | |
| <stop offset="0" stop-color="#071426"/> | |
| <stop offset="1" stop-color="#101d35"/> | |
| </linearGradient> | |
| <linearGradient id="accent" x1="0" y1="0" x2="1" y2="0"> | |
| <stop offset="0" stop-color="#08b8ff"/> | |
| <stop offset="1" stop-color="#3b7bff"/> | |
| </linearGradient> | |
| <filter id="glow" x="-30%" y="-30%" width="160%" height="160%"> | |
| <feGaussianBlur stdDeviation="7" result="blur"/> | |
| <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge> | |
| </filter> | |
| </defs> | |
| <rect width="1500" height="700" rx="30" fill="url(#background)"/> | |
| <path d="M0 145H1500" stroke="#203554" stroke-width="2"/> | |
| <text x="750" y="72" fill="#f4f8ff" font-family="Segoe UI, Arial, sans-serif" font-size="34" font-weight="700" text-anchor="middle">ABD3ID-CODE-16B</text> | |
| <text x="750" y="116" fill="#8ba9d5" font-family="Segoe UI, Arial, sans-serif" font-size="21" text-anchor="middle">FROM DEVELOPER REQUEST TO TESTED APPLICATION</text> | |
| <g font-family="Segoe UI, Arial, sans-serif"> | |
| <g transform="translate(55 215)"> | |
| <rect width="235" height="225" rx="20" fill="#10233e" stroke="#285179" stroke-width="2"/> | |
| <circle cx="117" cy="64" r="36" fill="#123d62"/> | |
| <path d="M98 64h38M117 45v38M102 49l30 30M132 49l-30 30" stroke="#48caff" stroke-width="4" stroke-linecap="round"/> | |
| <text x="117" y="133" fill="#f2f7ff" font-size="21" font-weight="700" text-anchor="middle">YOUR IDEA</text> | |
| <text x="117" y="166" fill="#a9bbd6" font-size="16" text-anchor="middle">Request · context · goals</text> | |
| <text x="117" y="193" fill="#a9bbd6" font-size="16" text-anchor="middle">الطلب والسياق والهدف</text> | |
| </g> | |
| <path d="M300 328h36" stroke="url(#accent)" stroke-width="5" filter="url(#glow)"/> | |
| <path d="m329 318 12 10-12 10" fill="none" stroke="#27bfff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/> | |
| <g transform="translate(350 215)"> | |
| <rect width="235" height="225" rx="20" fill="#10233e" stroke="#285179" stroke-width="2"/> | |
| <circle cx="117" cy="64" r="36" fill="#123d62"/> | |
| <path d="m102 50-16 14 16 14M132 50l16 14-16 14M122 43l-10 42" fill="none" stroke="#48caff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/> | |
| <text x="117" y="133" fill="#f2f7ff" font-size="21" font-weight="700" text-anchor="middle">AI CODING</text> | |
| <text x="117" y="166" fill="#a9bbd6" font-size="16" text-anchor="middle">Plan · generate · explain</text> | |
| <text x="117" y="193" fill="#a9bbd6" font-size="16" text-anchor="middle">تخطيط وكتابة وشرح</text> | |
| </g> | |
| <path d="M595 328h36" stroke="url(#accent)" stroke-width="5" filter="url(#glow)"/> | |
| <path d="m624 318 12 10-12 10" fill="none" stroke="#27bfff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/> | |
| <g transform="translate(645 215)"> | |
| <rect width="235" height="225" rx="20" fill="#17243b" stroke="#f5b84b" stroke-width="2"/> | |
| <circle cx="117" cy="64" r="36" fill="#4c3b21"/> | |
| <path d="m100 64 12 12 24-27" fill="none" stroke="#ffd06c" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/> | |
| <text x="117" y="133" fill="#fff6e4" font-size="21" font-weight="700" text-anchor="middle">YOUR REVIEW</text> | |
| <text x="117" y="166" fill="#d6c7a8" font-size="16" text-anchor="middle">Inspect · test · approve</text> | |
| <text x="117" y="193" fill="#d6c7a8" font-size="16" text-anchor="middle">مراجعتك وموافقتك</text> | |
| </g> | |
| <path d="M890 328h36" stroke="url(#accent)" stroke-width="5" filter="url(#glow)"/> | |
| <path d="m919 318 12 10-12 10" fill="none" stroke="#27bfff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/> | |
| <g transform="translate(940 215)"> | |
| <rect width="235" height="225" rx="20" fill="#10233e" stroke="#285179" stroke-width="2"/> | |
| <circle cx="117" cy="64" r="36" fill="#123d62"/> | |
| <rect x="92" y="46" width="50" height="36" rx="4" fill="none" stroke="#48caff" stroke-width="4"/> | |
| <path d="M92 56h50M108 88h18M117 82v6" fill="none" stroke="#48caff" stroke-width="3"/> | |
| <text x="117" y="133" fill="#f2f7ff" font-size="21" font-weight="700" text-anchor="middle">DEV TOOLS</text> | |
| <text x="117" y="166" fill="#a9bbd6" font-size="16" text-anchor="middle">VS Code · Browser</text> | |
| <text x="117" y="193" fill="#a9bbd6" font-size="16" text-anchor="middle">المحرر والمتصفح</text> | |
| </g> | |
| <path d="M1185 328h36" stroke="url(#accent)" stroke-width="5" filter="url(#glow)"/> | |
| <path d="m1214 318 12 10-12 10" fill="none" stroke="#27bfff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/> | |
| <g transform="translate(1235 215)"> | |
| <rect width="210" height="225" rx="20" fill="#10233e" stroke="#285179" stroke-width="2"/> | |
| <circle cx="105" cy="64" r="36" fill="#123d62"/> | |
| <path d="M88 53h34v28H88zM95 46h20v7M94 88h22" fill="none" stroke="#48caff" stroke-width="4" stroke-linejoin="round"/> | |
| <text x="105" y="133" fill="#f2f7ff" font-size="21" font-weight="700" text-anchor="middle">PLATFORMS</text> | |
| <text x="105" y="166" fill="#a9bbd6" font-size="16" text-anchor="middle">Windows · Linux</text> | |
| <text x="105" y="193" fill="#a9bbd6" font-size="16" text-anchor="middle">macOS · حسب الاختبار</text> | |
| </g> | |
| <rect x="210" y="500" width="1080" height="112" rx="20" fill="#0d1b30" stroke="#40506a" stroke-width="2" stroke-dasharray="10 9"/> | |
| <rect x="250" y="483" width="300" height="34" rx="17" fill="#44351d"/> | |
| <text x="400" y="506" fill="#ffd06c" font-size="15" font-weight="700" text-anchor="middle">FUTURE ROADMAP · REQUIRES APPROVAL</text> | |
| <text x="750" y="556" fill="#f4f8ff" font-size="23" font-weight="700" text-anchor="middle">APP CREATION → PACKAGING → STORE RELEASE</text> | |
| <text x="750" y="587" fill="#a9bbd6" font-size="16" text-anchor="middle">إنشاء التطبيقات ثم تجهيزها ونشرها مستقبلًا بموافقة صاحب الحساب</text> | |
| <text x="750" y="659" fill="#7287a6" font-size="14" text-anchor="middle">Concept illustration · Integrations, execution and publishing are not claimed as currently verified features</text> | |
| </g> | |
| </svg> | |