How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "mrm8488/CodeGPT-small-finetuned-python-token-completion"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "mrm8488/CodeGPT-small-finetuned-python-token-completion",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Use Docker
docker model run hf.co/mrm8488/CodeGPT-small-finetuned-python-token-completion
Quick Links

CodeGPT-small-py fine-tuned on CodeXGLUE for code-refinement task

Downloads last month
5
Safetensors
Model size
0.2B params
Tensor type
F32
ยท
U8
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Space using mrm8488/CodeGPT-small-finetuned-python-token-completion 1