OPEN MODELS / Language models (LLM)
Run BAR-2x7B-Code on a cloud GPU
BAR-2x7B-Code is an open model by allenai (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.
- Library
- Transformers
GPUs it fits on today
Our estimate is about 29 GB for inference with BF16 weights, including working memory. Real use depends on resolution, batch size and context length. With 4-bit quantization it needs about 10 GB.
| GPU | Memory | Per hour | 10 hours | Speed (est.) | |
|---|---|---|---|---|---|
| Tesla V100 | 32 GB | $0.31 | $3.10 | ≈ 23 tok/s · $3.68/1M | Rent |
| Q RTX 8000 | 48 GB | $0.52 | $5.20 | ≈ 16 tok/s · $9.07/1M | Rent |
| GB10 | 119 GB | $0.56 | $5.60 | ≈ 6.7 tok/s · $23.18/1M | Rent |
| CMP 170HX | 64 GB | $0.68 | $6.80 | ≈ 40 tok/s · $4.72/1M | Rent |
| A100 PCIE | 40 GB | $0.74 | $7.40 | ≈ 40 tok/s · $5.20/1M | Rent |
Live starting prices from our catalog. You pay per second while the machine runs. Speed is an estimate for one request at a time from the GPU's memory bandwidth; serving many requests at once raises total throughput and lowers the cost per token.
How to run BAR-2x7B-Code
- 01
Rent a GPU
Pick one of the GPUs above. Billing is per second; stop the machine and you stop paying.
- 02
Open a terminal or Jupyter
Connect over SSH or open Jupyter in your browser. PyTorch and CUDA are ready to use.
- 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 allenai/BAR-2x7B-Code --host 0.0.0.0 --port 8000Why 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 BAR-2x7B-Code?
- BAR-2x7B-Code is an open model by allenai (category: Language models (LLM)).
- How much GPU memory does BAR-2x7B-Code need?
- By our estimate about 29 GB for inference (12B parameters). Higher resolution, longer context or bigger batches need more.
- How much does it cost to run BAR-2x7B-Code?
- From $0.31 per hour on Tesla V100, billed per second. Ten hours cost about $3.10.
- How fast does BAR-2x7B-Code run?
- About 23 tokens per second for one request on Tesla V100, which works out to about $3.68 per million generated tokens at today's price. Serving many requests at once raises total throughput and lowers the cost per token.
- What license does BAR-2x7B-Code use?
- BAR-2x7B-Code is published under the apache-2.0 license. Check the model card for the full terms before commercial use.
- 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