Text Generation
Transformers
Safetensors
gpt2
Generated from Trainer
trl
dpo
text-generation-inference
Instructions to use AymenELKani/codeReasoningGPT-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AymenELKani/codeReasoningGPT-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AymenELKani/codeReasoningGPT-v2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AymenELKani/codeReasoningGPT-v2") model = AutoModelForCausalLM.from_pretrained("AymenELKani/codeReasoningGPT-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AymenELKani/codeReasoningGPT-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AymenELKani/codeReasoningGPT-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AymenELKani/codeReasoningGPT-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AymenELKani/codeReasoningGPT-v2
- SGLang
How to use AymenELKani/codeReasoningGPT-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 "AymenELKani/codeReasoningGPT-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AymenELKani/codeReasoningGPT-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "AymenELKani/codeReasoningGPT-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AymenELKani/codeReasoningGPT-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AymenELKani/codeReasoningGPT-v2 with Docker Model Runner:
docker model run hf.co/AymenELKani/codeReasoningGPT-v2
Commit History
-
Training in progress, step 3354, checkpoint
Verified signaturee189061 -
Training in progress, step 3354
Verified signature9109f16 -
Training in progress, step 3200, checkpoint
Verified signature735cb84 -
Training in progress, step 3200
Verified signature0bddc93 -
Training in progress, step 3000, checkpoint
Verified signature2e265f8 -
Training in progress, step 3000
Verified signature5b79f57 -
Training in progress, step 2800, checkpoint
Verified signature613372a -
Training in progress, step 2800
Verified signature68abed2 -
Training in progress, step 2600, checkpoint
Verified signaturef482090 -
Training in progress, step 2600
Verified signature494fc62 -
Training in progress, step 2400, checkpoint
Verified signature914fd00 -
Training in progress, step 2400
Verified signature2bae4e8 -
Training in progress, step 2200, checkpoint
Verified signaturef1d237b -
Training in progress, step 2200
Verified signaturecf5598e -
Training in progress, step 2000, checkpoint
Verified signatureb876148 -
Training in progress, step 2000
Verified signature92d4fd1 -
Training in progress, step 1800, checkpoint
Verified signaturec8da372 -
Training in progress, step 1800
Verified signature467dbc1 -
Training in progress, step 1600, checkpoint
Verified signature90696ec -
Training in progress, step 1600
Verified signature4b0b569 -
Training in progress, step 1400, checkpoint
Verified signature784c755 -
Training in progress, step 1400
Verified signature2f907b6 -
Training in progress, step 1200, checkpoint
Verified signature96302e7 -
Training in progress, step 1200
Verified signature4ff3e28 -
Training in progress, step 1000, checkpoint
Verified signature755d5f1 -
Training in progress, step 1000
Verified signaturee7a37df -
Training in progress, step 800, checkpoint
Verified signature5ded75a -
Training in progress, step 800
Verified signaturef3865fe -
Training in progress, step 600, checkpoint
Verified signaturec7d5c9e -
Training in progress, step 600
Verified signature39ad796 -
Training in progress, step 400, checkpoint
Verified signaturee573312 -
Training in progress, step 400
Verified signaturea360322 -
Training in progress, step 200, checkpoint
Verified signature7dbd93a -
Training in progress, step 200
Verified signature534653c
-
Model save
Verified signature1b7a4eb -
End of DPO training
Verified signature7f2acb5
-
Added 3 more epochs of training with 10K data samples
Verified signature6f717f4 -
Training in progress, step 12000
Verified signature288a7e0 -
Training in progress, step 11500
Verified signaturee9e1c13 -
Training in progress, step 11000
Verified signature0b86254 -
Training in progress, step 10500
Verified signaturecf8977c -
Training in progress, step 10000
Verified signature9b6b5bd -
Training in progress, step 9500
Verified signatureec9c195 -
Training in progress, step 9000
Verified signatured9094f0 -
Training in progress, step 8500
Verified signaturedd0f531 -
Training in progress, step 8000
Verified signature0c0cf31 -
Training in progress, step 7500
Verified signaturea381f20 -
Training in progress, step 7000
Verified signature2df9658 -
Training in progress, step 6500
Verified signatureaa9717e -
Training in progress, step 6000
Verified signaturec689d91