Text Generation
Transformers
Safetensors
English
qwen3_5
image-text-to-text
flintglass
prismsql
qwen3
text-to-sql
sql
sqlite
rlvr
grpo
apache-2.0
conversational
Instructions to use flintglass/PrismSQL-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flintglass/PrismSQL-27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="flintglass/PrismSQL-27B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("flintglass/PrismSQL-27B") model = AutoModelForMultimodalLM.from_pretrained("flintglass/PrismSQL-27B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use flintglass/PrismSQL-27B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "flintglass/PrismSQL-27B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "flintglass/PrismSQL-27B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/flintglass/PrismSQL-27B
- SGLang
How to use flintglass/PrismSQL-27B 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 "flintglass/PrismSQL-27B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "flintglass/PrismSQL-27B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "flintglass/PrismSQL-27B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "flintglass/PrismSQL-27B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use flintglass/PrismSQL-27B with Docker Model Runner:
docker model run hf.co/flintglass/PrismSQL-27B
Release Flintglass PrismSQL-27B BF16 part 2
Browse filesFiles changed (9)
- model-00010-of-00018.safetensorsAdded+3
- model-00011-of-00018.safetensorsAdded+3
- model-00012-of-00018.safetensorsAdded+3
- model-00013-of-00018.safetensorsAdded+3
- model-00014-of-00018.safetensorsAdded+3
- model-00015-of-00018.safetensorsAdded+3
- model-00016-of-00018.safetensorsAdded+3
- model-00017-of-00018.safetensorsAdded+3
- model-00018-of-00018.safetensorsAdded+3
123version https://git-lfs.github.com/spec/v1oid sha256:e9f0e525ad8f2970946a0847ebce1f99403201a0d90da0d4b82a195df62efb2asize 3979553664123version https://git-lfs.github.com/spec/v1oid sha256:e20c99dbe4b1224708b641693d31f93e634f7a94b07160f4a60e6c0c2c203d23size 2108759312123version https://git-lfs.github.com/spec/v1oid sha256:2e16bf743d57bdbb58a4f401c4a59cf44c6de6d447cddf09cabbb3f953f98c6asize 3979553664123version https://git-lfs.github.com/spec/v1oid sha256:2d618d758353c4afe8983194a35b1041f1999726548f4933ca7452214362be48size 2108759312123version https://git-lfs.github.com/spec/v1oid sha256:39dc5fedad124684a19deaa93db12f941d774cd86e984f5ad9f0fa59607caecesize 3979553664123version https://git-lfs.github.com/spec/v1oid sha256:dbff23ede488f469cb2098cd5aef58f0faa4e2d6feef7af6fc69dbf6bb06b4e8size 2108759312123version https://git-lfs.github.com/spec/v1oid sha256:c6c861eb5d5249a387da162c9e8b82d77650487a0bd60ed0835c826296ff0339size 3979564008123version https://git-lfs.github.com/spec/v1oid sha256:ccca29f6d9f2e6f98b993ef4d0857189c98b2fcd6087d0a9a6f4c27b5ae15a7esize 2108759312123version https://git-lfs.github.com/spec/v1oid sha256:fe72369eebdd81b26cb9c22ea63aec33f003ddcbb5cf08e4e7165f7cbcc5628bsize 3392197320model-00010-of-00018.safetensorsAdded+3
model-00011-of-00018.safetensorsAdded+3
model-00012-of-00018.safetensorsAdded+3
model-00013-of-00018.safetensorsAdded+3
model-00014-of-00018.safetensorsAdded+3
model-00015-of-00018.safetensorsAdded+3
model-00016-of-00018.safetensorsAdded+3
model-00017-of-00018.safetensorsAdded+3
model-00018-of-00018.safetensorsAdded+3