Instructions to use mlfoundations/tabula-8b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mlfoundations/tabula-8b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mlfoundations/tabula-8b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mlfoundations/tabula-8b") model = AutoModelForCausalLM.from_pretrained("mlfoundations/tabula-8b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mlfoundations/tabula-8b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mlfoundations/tabula-8b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mlfoundations/tabula-8b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mlfoundations/tabula-8b
- SGLang
How to use mlfoundations/tabula-8b 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 "mlfoundations/tabula-8b" \ --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": "mlfoundations/tabula-8b", "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 "mlfoundations/tabula-8b" \ --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": "mlfoundations/tabula-8b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use mlfoundations/tabula-8b with Docker Model Runner:
docker model run hf.co/mlfoundations/tabula-8b
Commit History
-
Update README.md
Verified signature7fab8a2
-
Update README.md
Verified signature738eb8a
-
Update README.md
Verified signature51c9ff7 -
Update README.md
Verified signature1c3e3ea
-
Update README.md
Verified signaturecc60b75 -
Update README.md
Verified signaturef3bb368
-
Update README.md
Verified signature0c46c44 -
Update README.md
Verified signaturec809873 -
Upload tokenizer
Verified signature19cea90 -
Upload LlamaForCausalLM
Verified signatureb8eec86 -
initial commit
Verified signature7282e8f