corehu

OPEN MODELS / Language models (LLM)

Run sqlcoder2 on a cloud GPU

sqlcoder2 is an open model by defog (category: Language models (LLM)). See how much GPU memory it needs, which GPUs it fits on today and what it costs to run it yourself, billed per second.

Parameters
—
GPU memory needed
≈ 39 GB
License
—
Downloads
2,544
Updated Oct 13, 2023
Library
Transformers
Languages
English

GPUs it fits on today

Our estimate is about 39 GB for inference: its largest set of weight files is 31.04 GB, plus working memory. Real use depends on resolution, batch size and context length.

GPUMemoryPer hour10 hours
Q RTX 800048 GB$0.52$5.20Rent
GB10119 GB$0.56$5.60Rent
CMP 170HX64 GB$0.68$6.80Rent
A100 PCIE40 GB$0.74$7.40Rent
A100 SXM480 GB$0.75$7.50Rent

Live starting prices from our catalog. You pay per second while the machine runs.

How to run sqlcoder2

  1. 01

    Rent a GPU

    Pick one of the GPUs above. Billing is per second; stop the machine and you stop paying.

  2. 02

    Open a terminal or Jupyter

    Connect over SSH or open Jupyter in your browser. PyTorch and CUDA are ready to use.

  3. 03

    Download and run the model

    Run the commands below. The weights download straight from Hugging Face to your machine.

pip install -U vllm
vllm serve defog/sqlcoder2 --host 0.0.0.0 --port 8000

Why run it yourself?

Your own LLM server has no per-token bill and no rate limit, and your data stays private. Pick a GPU by memory and serve the model with vLLM.

Questions

What is sqlcoder2?
sqlcoder2 is an open model by defog (category: Language models (LLM)).
How much GPU memory does sqlcoder2 need?
By our estimate about 39 GB for inference. Higher resolution, longer context or bigger batches need more.
How much does it cost to run sqlcoder2?
From $0.52 per hour on Q RTX 8000, billed per second. Ten hours cost about $5.20.
Do I need a subscription?
No. You pay only for the time your machine runs, from your USD balance. Stop it whenever you are done.

Try it on your own GPU in minutes

Pick a GPU, open Jupyter or SSH and run any open model. You pay per second and can stop anytime; no subscription, no setup fee.

  • Per-second billing in USD
  • PyTorch and CUDA ready in minutes
  • Rent from ChatGPT or Claude too

Similar Language models (LLM) models

More from defog