Instructions to use fifi777/codeparrot-ds with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fifi777/codeparrot-ds with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="fifi777/codeparrot-ds")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("fifi777/codeparrot-ds") model = AutoModelForCausalLM.from_pretrained("fifi777/codeparrot-ds", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use fifi777/codeparrot-ds with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fifi777/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": "fifi777/codeparrot-ds", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/fifi777/codeparrot-ds
- SGLang
How to use fifi777/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 "fifi777/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": "fifi777/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 "fifi777/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": "fifi777/codeparrot-ds", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use fifi777/codeparrot-ds with Docker Model Runner:
docker model run hf.co/fifi777/codeparrot-ds
Commit History
-
Training in progress, step 110000
9df68ef
-
Training in progress, step 105000
e34abbd -
Training in progress, step 100000
d15adcc -
Training in progress, step 95000
8a5a89d -
Training in progress, step 90000
0e6fe60 -
Training in progress, step 85000
6de4d5e -
Training in progress, step 80000
986d004 -
Training in progress, step 75000
46a4f1d -
Training in progress, step 70000
abc03ea -
Training in progress, step 65000
888fbc9 -
Training in progress, step 60000
8fe9bb4 -
Training in progress, step 55000
da93a28 -
Training in progress, step 50000
cffe814 -
Training in progress, step 45000
a3d8e33 -
Training in progress, step 40000
28bc886 -
Training in progress, step 35000
625eca8 -
Training in progress, step 30000
a7fd5c8 -
Training in progress, step 25000
abd1ec2 -
Training in progress, step 20000
6b277ef -
Training in progress, step 15000
74949d3 -
Training in progress, step 10000
e40979e -
Training in progress, step 5000
7d42da8 -
Training in progress, step 15000
a6b55be -
Training in progress, step 10000
2945482 -
Training in progress, step 5000
d3c8c8d
-
initial commit
d2931bb