Instructions to use patricksaxton/peft-starcoder-lora-a100 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use patricksaxton/peft-starcoder-lora-a100 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("bigcode/starcoderbase-1b") model = PeftModel.from_pretrained(base_model, "patricksaxton/peft-starcoder-lora-a100") - Transformers
How to use patricksaxton/peft-starcoder-lora-a100 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="patricksaxton/peft-starcoder-lora-a100")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("patricksaxton/peft-starcoder-lora-a100", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use patricksaxton/peft-starcoder-lora-a100 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "patricksaxton/peft-starcoder-lora-a100" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "patricksaxton/peft-starcoder-lora-a100", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/patricksaxton/peft-starcoder-lora-a100
- SGLang
How to use patricksaxton/peft-starcoder-lora-a100 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 "patricksaxton/peft-starcoder-lora-a100" \ --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": "patricksaxton/peft-starcoder-lora-a100", "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 "patricksaxton/peft-starcoder-lora-a100" \ --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": "patricksaxton/peft-starcoder-lora-a100", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use patricksaxton/peft-starcoder-lora-a100 with Docker Model Runner:
docker model run hf.co/patricksaxton/peft-starcoder-lora-a100
Commit History
-
Upload tokenizer
Verified signaturedf8fe82 -
Upload model
Verified signaturebf9f2b8
-
End of training
Verified signaturebb62a5a -
Training in progress, step 2000
Verified signaturebd53c91 -
Training in progress, step 1900
Verified signature11e2ea3 -
Training in progress, step 1800
Verified signaturedf0556c -
Training in progress, step 1700
Verified signature9d2a96e -
Training in progress, step 1600
Verified signaturee07628f -
Training in progress, step 1500
Verified signaturec0ae010 -
Training in progress, step 1400
Verified signature90030ea -
Training in progress, step 1300
Verified signatureeff5b10 -
Training in progress, step 1200
Verified signature82a34fa
-
Training in progress, step 1100
Verified signatured5cae04 -
Training in progress, step 1000
Verified signaturefcffff0 -
Training in progress, step 900
Verified signaturea972275 -
Training in progress, step 800
Verified signaturedd9b0d3 -
Training in progress, step 700
Verified signature853c93f -
Training in progress, step 600
Verified signature5f10d7c -
Training in progress, step 500
Verified signatureddcd3cb -
Training in progress, step 400
Verified signature32e9fc3 -
Training in progress, step 300
Verified signature8de302b -
Training in progress, step 200
Verified signature7eaa8db -
Training in progress, step 100
Verified signature79e0d40 -
Training in progress, step 100
Verified signature2af89fb
-
Training in progress, step 1600
Verified signature9c4f491 -
Training in progress, step 1500
Verified signature195cd26 -
Training in progress, step 1400
Verified signaturefd1d71c -
Training in progress, step 1300
Verified signature2bb46f8 -
Training in progress, step 1200
Verified signatured0e4352 -
Training in progress, step 1100
Verified signatureeca9814 -
Training in progress, step 1000
Verified signature896917c -
Training in progress, step 900
Verified signaturee47bebe -
Training in progress, step 800
Verified signature902323d -
Training in progress, step 700
Verified signature22caf58 -
Training in progress, step 600
Verified signature5e9d83f -
Training in progress, step 500
Verified signatured081d3c -
Training in progress, step 400
Verified signaturecfee07d -
Training in progress, step 300
Verified signature6d20a73 -
Training in progress, step 200
Verified signature3015f82 -
Training in progress, step 100
Verified signature357b3ca
-
Training in progress, step 1400
Verified signature736c0d4 -
Training in progress, step 1300
Verified signatureb7b75b2 -
Training in progress, step 1200
Verified signatureb7c5cb4 -
Training in progress, step 1100
Verified signature9fa95df -
Training in progress, step 1000
Verified signature19f6c4b -
Training in progress, step 900
Verified signature6b5c8a3 -
Training in progress, step 800
Verified signature98c5fe7 -
Training in progress, step 700
Verified signature3e1db9c -
Training in progress, step 600
Verified signature27f9b53 -
Training in progress, step 500
Verified signature409e445