Instructions to use gabrielpondc/NL2SQL-StarCoder-15B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gabrielpondc/NL2SQL-StarCoder-15B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gabrielpondc/NL2SQL-StarCoder-15B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("gabrielpondc/NL2SQL-StarCoder-15B") model = AutoModelForCausalLM.from_pretrained("gabrielpondc/NL2SQL-StarCoder-15B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gabrielpondc/NL2SQL-StarCoder-15B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gabrielpondc/NL2SQL-StarCoder-15B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gabrielpondc/NL2SQL-StarCoder-15B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/gabrielpondc/NL2SQL-StarCoder-15B
- SGLang
How to use gabrielpondc/NL2SQL-StarCoder-15B 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 "gabrielpondc/NL2SQL-StarCoder-15B" \ --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": "gabrielpondc/NL2SQL-StarCoder-15B", "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 "gabrielpondc/NL2SQL-StarCoder-15B" \ --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": "gabrielpondc/NL2SQL-StarCoder-15B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use gabrielpondc/NL2SQL-StarCoder-15B with Docker Model Runner:
docker model run hf.co/gabrielpondc/NL2SQL-StarCoder-15B
Commit History
-
Update README.md
Verified signature4ca645d
-
Update README.md
Verified signature0db7324 -
Update
Verified signature015dda7 -
Rename pytorch_model-00004-of-00004.bin to pytorch_model-00004-of-00004.bi
Verified signaturee02f218 -
Update
Verified signaturecf8bf07 -
Rename pytorch_model-00003-of-00004.bin to pytorch_model-00003-of-00004.bi
Verified signatured634626 -
update
Verified signature664464f -
Rename pytorch_model-00002-of-00004.bin to pytorch_model-00002-of-00004.bi
Verified signature58ad8b6 -
Update
Verified signature1496abb -
Name
Verified signaturecffe00c -
Rename vocab.jsonl to vocab.json
Verified signature392cd29 -
Rename vocab.json to vocab.jsonl
Verified signaturefcb6e09 -
Rename tokenizer_config.jsonl to tokenizer_config.json
Verified signature68dfef1 -
Rename tokenizer_config.json to tokenizer_config.jsonl
Verified signature388fdd5 -
Rename tokenizer.jsonl to tokenizer.json
Verified signaturefe11ec2 -
Rename tokenizer.json to tokenizer.jsonl
Verified signature845c056 -
Update special_tokens_map.json
Verified signature9371c31 -
Update special_tokens_map.json
Verified signature9653366 -
Update pytorch_model.bin.index.json
Verified signature693970f -
Update pytorch_model.bin.index.json
Verified signature15c4d8e -
Update configuration.json
Verified signatured3832db -
Update configuration.json
Verified signature9345415 -
Update generation_config.json
Verified signature6f28b20 -
Update config.json
Verified signaturef7c93f1 -
Update README.md
Verified signature1e3849a -
Update README.md
Verified signature1991883
-
commit from gujiakai
6644ecd
-
initial commit
Verified signature2330c43