Instructions to use gunduzcagri/ReGeZen-Coder-7B-dLLM-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gunduzcagri/ReGeZen-Coder-7B-dLLM-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gunduzcagri/ReGeZen-Coder-7B-dLLM-v2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("gunduzcagri/ReGeZen-Coder-7B-dLLM-v2") model = AutoModelForCausalLM.from_pretrained("gunduzcagri/ReGeZen-Coder-7B-dLLM-v2", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gunduzcagri/ReGeZen-Coder-7B-dLLM-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gunduzcagri/ReGeZen-Coder-7B-dLLM-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gunduzcagri/ReGeZen-Coder-7B-dLLM-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/gunduzcagri/ReGeZen-Coder-7B-dLLM-v2
- SGLang
How to use gunduzcagri/ReGeZen-Coder-7B-dLLM-v2 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 "gunduzcagri/ReGeZen-Coder-7B-dLLM-v2" \ --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": "gunduzcagri/ReGeZen-Coder-7B-dLLM-v2", "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 "gunduzcagri/ReGeZen-Coder-7B-dLLM-v2" \ --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": "gunduzcagri/ReGeZen-Coder-7B-dLLM-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use gunduzcagri/ReGeZen-Coder-7B-dLLM-v2 with Docker Model Runner:
docker model run hf.co/gunduzcagri/ReGeZen-Coder-7B-dLLM-v2
ReGeZen-Coder-7B-dLLM-v2 (Masked Diffusion Coding & Blender Agent LM)
ReGeZen-Coder-7B-dLLM-v2, Qwen2.5-Coder-7B tabanı üzerine Masked Diffusion Language Modeling (dLLM) (shift=True, <|fim_pad|> mask token, max_len=1280, LoRA rank=64) yöntemiyle eğitilmiş ve ardından Türkçe, Kodlama, Agentic Tool Calling ve Blender Python (bpy) 3B sahne üretimi için cilalanmış (dllm_v2_polish/merged) bir difüzyon dil modelidir.
Model Özeti & Değerlendirme (eval_final_report.json)
- Temel Mimari:
Qwen2ForCausalLM(bfloat16,~15 GBbirleştirilmiş tam ağırlıklar) - Difüzyon Yapılandırması (
dllm_config.json):mask_token: "<|fim_pad|>",shift: true,max_len: 1280,lora_rank: 64 - Otomatik Yürütme Testleri (
dllm_v2_polish/merged):- Core Kodlama:
5 / 6 - Blender
bpy3B Üretim (Headless Blender doğrulamalı):5 / 8 - Agentic Görevler:
3 / 4
- Core Kodlama:
Kullanım Notu (dLLM Maskeli Difüzyon Üretimi)
Bu model klasik sol-sağ otoregresif örnekleme yerine iteratif maskeli difüzyon (denoising) ile çalışır (dllm_config.json içinde tanımlıdır). En iyi sonuç için projedeki dllm_core.py / generate.py maskeli difüzyon çözücüsüyle kullanın; standart AutoModelForCausalLM ile açıldığında shift=True dLLM dikkat/maske yapısına uygun özel örnekleme döngüsü gerekir.
# dllm_core.py / generate.py ile örnek çalıştırma:
# python generate.py --model ./ReGeZen-Coder-7B-dLLM-v2 --prompt "Blender Python ile 4 ayaklı masa oluştur" --show-steps
Dosya İçeriği
model.safetensors(15 GB, birleştirilmiş tambf16ağırlıklar)config.json,generation_config.json,dllm_config.jsontokenizer.json,tokenizer_config.json,chat_template.jinja
- Downloads last month
- 32