Instructions to use AdnanRiaz107/CodeBert-finetuned-the-stack-bash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AdnanRiaz107/CodeBert-finetuned-the-stack-bash with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AdnanRiaz107/CodeBert-finetuned-the-stack-bash")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AdnanRiaz107/CodeBert-finetuned-the-stack-bash") model = AutoModelForCausalLM.from_pretrained("AdnanRiaz107/CodeBert-finetuned-the-stack-bash", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AdnanRiaz107/CodeBert-finetuned-the-stack-bash with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AdnanRiaz107/CodeBert-finetuned-the-stack-bash" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AdnanRiaz107/CodeBert-finetuned-the-stack-bash", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AdnanRiaz107/CodeBert-finetuned-the-stack-bash
- SGLang
How to use AdnanRiaz107/CodeBert-finetuned-the-stack-bash 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 "AdnanRiaz107/CodeBert-finetuned-the-stack-bash" \ --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": "AdnanRiaz107/CodeBert-finetuned-the-stack-bash", "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 "AdnanRiaz107/CodeBert-finetuned-the-stack-bash" \ --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": "AdnanRiaz107/CodeBert-finetuned-the-stack-bash", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AdnanRiaz107/CodeBert-finetuned-the-stack-bash with Docker Model Runner:
docker model run hf.co/AdnanRiaz107/CodeBert-finetuned-the-stack-bash
Commit History
-
Training in progress, step 7000
cd318ab -
Training in progress, step 6500
62ae0f6 -
Training in progress, step 6000
a9718c7 -
Training in progress, step 5500
025e9c2 -
Training in progress, step 5000
d0f253a -
Training in progress, step 4500
169bd69 -
Training in progress, step 4000
b779dda -
Training in progress, step 3500
f15cf52 -
Training in progress, step 3000
006dfaf -
Training in progress, step 2500
05b204e -
Training in progress, step 2000
cea2812 -
Training in progress, step 1500
e516b78 -
Training in progress, step 1000
a45061e -
Training in progress, step 500
b7ea99c -
Training in progress, step 10000
967e045 -
Training in progress, step 9500
4027c75 -
Training in progress, step 9000
0aa6b21 -
Training in progress, step 8500
13eaac2 -
Training in progress, step 8000
fdbadba -
Training in progress, step 7500
1f48d5f -
Training in progress, step 7000
51948b8 -
Training in progress, step 6500
d783450 -
Training in progress, step 6000
f855c36 -
Training in progress, step 5500
b0f9000 -
Training in progress, step 5000
c2e7088 -
Training in progress, step 4500
bb77d1b -
Training in progress, step 4000
ce73634 -
Training in progress, step 3500
27739de -
Training in progress, step 3000
188e8dc -
Training in progress, step 2500
ed6118a -
Training in progress, step 2000
bcd2400 -
Training in progress, step 1500
9db1e9e -
Training in progress, step 1000
09ccf82 -
Training in progress, step 500
cf8bd43
-
Training in progress, step 10000
6616ebd -
Training in progress, step 9500
9388d59 -
Training in progress, step 9000
771631f -
Training in progress, step 8500
fdd8120 -
Training in progress, step 8000
e4d1c14 -
Training in progress, step 7500
e5d17df -
Training in progress, step 7000
256260c -
Training in progress, step 6500
d134425 -
Training in progress, step 6000
83ed0fa -
Training in progress, step 5500
0c971ee -
Training in progress, step 5000
e77f2bb -
Training in progress, step 4500
e3c3340 -
Training in progress, step 4000
f041f6d -
Training in progress, step 3500
873835a -
Training in progress, step 3000
f1e1162 -
Training in progress, step 2500
527f184