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 3200, checkpoint
Verified signature735cb84 -
Training in progress, step 3000, checkpoint
Verified signature2e265f8 -
Training in progress, step 2800, checkpoint
Verified signature613372a -
Training in progress, step 2600, checkpoint
Verified signaturef482090 -
Training in progress, step 2400, checkpoint
Verified signature914fd00 -
Training in progress, step 2200, checkpoint
Verified signaturef1d237b -
Training in progress, step 2000, checkpoint
Verified signatureb876148 -
Training in progress, step 1800, checkpoint
Verified signaturec8da372 -
Training in progress, step 1600, checkpoint
Verified signature90696ec -
Training in progress, step 1400, checkpoint
Verified signature784c755 -
Training in progress, step 1200, checkpoint
Verified signature96302e7 -
Training in progress, step 1000, checkpoint
Verified signature755d5f1 -
Training in progress, step 800, checkpoint
Verified signature5ded75a -
Training in progress, step 600, checkpoint
Verified signaturec7d5c9e -
Training in progress, step 400, checkpoint
Verified signaturee573312 -
Training in progress, step 200, checkpoint
Verified signature7dbd93a