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
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- lora
|
| 4 |
+
- code
|
| 5 |
+
- education
|
| 6 |
+
- vscode
|
| 7 |
+
- research
|
| 8 |
+
- work-in-progress
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# ABD3ID CodeMentor
|
| 12 |
+
|
| 13 |
+
**A planned LoRA research project for developer education and coding assistance in Visual Studio Code, maintained by Abdallah Eid.**
|
| 14 |
+
|
| 15 |
+
## Project overview
|
| 16 |
+
CodeMentor explores adaptation of a coding language model for clear explanations, guided debugging, and practical software engineering education. The intended experience emphasizes understanding the reasoning behind code changes and helping learners build independent problem-solving skills.
|
| 17 |
+
|
| 18 |
+
## Development status
|
| 19 |
+
This repository currently contains project documentation only. Model weights and LoRA adapters have not yet been uploaded. The base model, parameter scale, training data, and evaluation methodology remain to be finalized. No trained capabilities, benchmark scores, or working VS Code integration are claimed at this stage.
|
| 20 |
+
|
| 21 |
+
## Intended research scope
|
| 22 |
+
- Explain code, APIs, error messages, and implementation tradeoffs.
|
| 23 |
+
- Guide debugging through hypotheses and verification steps.
|
| 24 |
+
- Suggest refactoring, tests, and maintainable coding practices.
|
| 25 |
+
- Support programming exercises and contextual learning within VS Code.
|
| 26 |
+
|
| 27 |
+
## Planned integration
|
| 28 |
+
After training and evaluation, the project aims to support an editor assistant through a documented inference endpoint or local serving workflow. A VS Code extension or compatible client must be configured separately; this repository is not itself an installed extension.
|
| 29 |
+
|
| 30 |
+
## Release documentation
|
| 31 |
+
A future release should include adapter weights and configuration, the exact base-model revision, training and dataset documentation, reproducible coding evaluations, inference examples, and editor integration instructions.
|
| 32 |
+
|
| 33 |
+
## Limitations
|
| 34 |
+
Generated code may contain functional, security, or compatibility errors. Review proposed changes and run appropriate tests before use. Do not expose secrets or private source code to an unapproved inference service.
|
| 35 |
+
|
| 36 |
+
All right reserved | Designed by [Abdallah Eid](https://api.whatsapp.com/send/?phone=971551806906)
|