Text Generation
Transformers
PyTorch
gpt2
code-completion
Generated from Trainer
text-generation-inference
Instructions to use schubertcarvalho/codeparrot-ds with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use schubertcarvalho/codeparrot-ds with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="schubertcarvalho/codeparrot-ds")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("schubertcarvalho/codeparrot-ds") model = AutoModelForCausalLM.from_pretrained("schubertcarvalho/codeparrot-ds", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use schubertcarvalho/codeparrot-ds with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "schubertcarvalho/codeparrot-ds" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "schubertcarvalho/codeparrot-ds", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/schubertcarvalho/codeparrot-ds
- SGLang
How to use schubertcarvalho/codeparrot-ds 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 "schubertcarvalho/codeparrot-ds" \ --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": "schubertcarvalho/codeparrot-ds", "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 "schubertcarvalho/codeparrot-ds" \ --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": "schubertcarvalho/codeparrot-ds", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use schubertcarvalho/codeparrot-ds with Docker Model Runner:
docker model run hf.co/schubertcarvalho/codeparrot-ds
Commit History
-
Training complete
ce66bac
-
Training in progress, step 1300
5031c43 -
Training in progress, step 1250
8b1edf4 -
Training in progress, step 1200
0d582cf -
Training in progress, step 1150
881fec9 -
Training in progress, step 1100
fba7ede -
Training in progress, step 1050
2410029 -
Training in progress, step 1000
e91bc86 -
Training in progress, step 950
de30842 -
Training in progress, step 900
9b790ee -
Training in progress, step 850
962d753 -
Training in progress, step 800
e2015f5 -
Training in progress, step 750
6417f17 -
Training in progress, step 700
c331b11 -
Training in progress, step 650
e1969c5 -
Training in progress, step 600
ce039e4 -
Training in progress, step 550
977b298 -
Training in progress, step 500
0f16c43 -
Training in progress, step 450
da8bd2b -
Training in progress, step 400
42457d1 -
Training in progress, step 350
6f264b2 -
Training in progress, step 300
1f14cf0 -
Training in progress, step 250
d2791b9 -
Training in progress, step 200
1f86974 -
Training in progress, step 150
3ed66ce -
Training in progress, step 100
733b223 -
Training in progress, step 50
7d791ae -
Training in progress, step 50
61c781c -
initial commit
c90307a