Instructions to use elinaparajuli/Codebert-Code-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use elinaparajuli/Codebert-Code-finetuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="elinaparajuli/Codebert-Code-finetuned")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("elinaparajuli/Codebert-Code-finetuned") model = AutoModelForCausalLM.from_pretrained("elinaparajuli/Codebert-Code-finetuned", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use elinaparajuli/Codebert-Code-finetuned with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "elinaparajuli/Codebert-Code-finetuned" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "elinaparajuli/Codebert-Code-finetuned", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/elinaparajuli/Codebert-Code-finetuned
- SGLang
How to use elinaparajuli/Codebert-Code-finetuned 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 "elinaparajuli/Codebert-Code-finetuned" \ --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": "elinaparajuli/Codebert-Code-finetuned", "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 "elinaparajuli/Codebert-Code-finetuned" \ --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": "elinaparajuli/Codebert-Code-finetuned", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use elinaparajuli/Codebert-Code-finetuned with Docker Model Runner:
docker model run hf.co/elinaparajuli/Codebert-Code-finetuned
Commit History
-
Upload 4 files
Verified signaturea47be75
-
End of training
Verified signatureb2b4cab -
Training in progress, step 7500
Verified signature58d8555 -
Training in progress, step 7000
Verified signatureebe0a86 -
Training in progress, step 6500
Verified signatureb58da9e -
Training in progress, step 6000
Verified signature8dfb455 -
Training in progress, step 5500
Verified signature9e39d75 -
Training in progress, step 5000
Verified signature5779bf6 -
Training in progress, step 4500
Verified signature0e68c30 -
Training in progress, step 4000
Verified signature3d2fcd1 -
Training in progress, step 3500
Verified signaturec04beae -
Training in progress, step 3000
Verified signatureb970828 -
Training in progress, step 2500
Verified signature70247cc -
Training in progress, step 2000
Verified signatureb5e2a26 -
Training in progress, step 1500
Verified signaturea2db0e4 -
Training in progress, step 1000
Verified signature705758c -
Training in progress, step 500
Verified signature269b2bc -
initial commit
Verified signatureee90d33