Instructions to use AdnanRiaz107/huggingfacecodebert-base-mlm-finetuned-the-stack-bash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AdnanRiaz107/huggingfacecodebert-base-mlm-finetuned-the-stack-bash with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AdnanRiaz107/huggingfacecodebert-base-mlm-finetuned-the-stack-bash")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AdnanRiaz107/huggingfacecodebert-base-mlm-finetuned-the-stack-bash") model = AutoModelForCausalLM.from_pretrained("AdnanRiaz107/huggingfacecodebert-base-mlm-finetuned-the-stack-bash", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AdnanRiaz107/huggingfacecodebert-base-mlm-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/huggingfacecodebert-base-mlm-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/huggingfacecodebert-base-mlm-finetuned-the-stack-bash", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AdnanRiaz107/huggingfacecodebert-base-mlm-finetuned-the-stack-bash
- SGLang
How to use AdnanRiaz107/huggingfacecodebert-base-mlm-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/huggingfacecodebert-base-mlm-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/huggingfacecodebert-base-mlm-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/huggingfacecodebert-base-mlm-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/huggingfacecodebert-base-mlm-finetuned-the-stack-bash", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AdnanRiaz107/huggingfacecodebert-base-mlm-finetuned-the-stack-bash with Docker Model Runner:
docker model run hf.co/AdnanRiaz107/huggingfacecodebert-base-mlm-finetuned-the-stack-bash
Commit History
-
Training in progress, step 10000
56e7dac -
Training in progress, step 9500
ec1d336 -
Training in progress, step 9000
615e78e -
Training in progress, step 8500
63116e7 -
Training in progress, step 8000
58d09a1 -
Training in progress, step 7500
42020b2 -
Training in progress, step 7000
1cb2d1e -
Training in progress, step 6500
561fa77 -
Training in progress, step 6000
9ee544d -
Training in progress, step 5500
8cffecc -
Training in progress, step 5000
00c59b5 -
Training in progress, step 4500
7052af0 -
Training in progress, step 4000
95d59cc -
Training in progress, step 3500
09cbcae -
Training in progress, step 3000
1d2dd73 -
Training in progress, step 2500
ace26d0 -
Training in progress, step 2000
40ec659 -
Training in progress, step 1500
124d73b -
Training in progress, step 1000
e00dc6d -
Training in progress, step 500
e0545ab
-
Training in progress, step 6500
f958255 -
Training in progress, step 6000
b475290 -
Training in progress, step 5500
4daffd7 -
Training in progress, step 5000
d60d0c6 -
Training in progress, step 4500
6788dd0 -
Training in progress, step 4000
bb2f62b -
Training in progress, step 3500
1989f38 -
Training in progress, step 3000
54e426b -
Training in progress, step 2500
fc78ba5 -
Training in progress, step 2000
43d7637 -
Training in progress, step 1500
b76971a -
Training in progress, step 1000
bb12bdd -
Training in progress, step 500
55a55d8