Text Generation
Transformers
PyTorch
gpt_bigcode
sql
spider
text-to-sql
sql finetune
text-generation-inference
Instructions to use richardr1126/spider-natsql-wizard-coder-merged with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use richardr1126/spider-natsql-wizard-coder-merged with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="richardr1126/spider-natsql-wizard-coder-merged")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("richardr1126/spider-natsql-wizard-coder-merged") model = AutoModelForCausalLM.from_pretrained("richardr1126/spider-natsql-wizard-coder-merged", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use richardr1126/spider-natsql-wizard-coder-merged with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "richardr1126/spider-natsql-wizard-coder-merged" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "richardr1126/spider-natsql-wizard-coder-merged", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/richardr1126/spider-natsql-wizard-coder-merged
- SGLang
How to use richardr1126/spider-natsql-wizard-coder-merged 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 "richardr1126/spider-natsql-wizard-coder-merged" \ --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": "richardr1126/spider-natsql-wizard-coder-merged", "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 "richardr1126/spider-natsql-wizard-coder-merged" \ --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": "richardr1126/spider-natsql-wizard-coder-merged", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use richardr1126/spider-natsql-wizard-coder-merged with Docker Model Runner:
docker model run hf.co/richardr1126/spider-natsql-wizard-coder-merged
Download pytorch_model-00002-of-00041.bin from richardr1126/spider-natsql-wizard-coder-merged: direct link, hf CLI and curl.
- Browser
- Download file 758 MB
-
https://huggingface.co/richardr1126/spider-natsql-wizard-coder-merged/resolve/main/pytorch_model-00002-of-00041.bin
- Command line
-
hf download hf://richardr1126/spider-natsql-wizard-coder-merged/pytorch_model-00002-of-00041.bin
-
curl -L -o pytorch_model-00002-of-00041.bin https://huggingface.co/richardr1126/spider-natsql-wizard-coder-merged/resolve/main/pytorch_model-00002-of-00041.bin
758 MB
- Xet hash:
- b40e838b41a8b7213ecbefd23f41f5958dbc014cb2407ff672f535c07d268edc
- Size of remote file:
- 758 MB
- SHA256:
- 6793da215e77841e4bcc6e2f517a7ba10dbd5f16950d5173b38873b00a10fd6a
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.