Text Generation
Transformers
Safetensors
English
qwen2
chat
conversational
text-generation-inference
Instructions to use GAIR/daVinci-Dev-72B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GAIR/daVinci-Dev-72B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="GAIR/daVinci-Dev-72B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("GAIR/daVinci-Dev-72B") model = AutoModelForCausalLM.from_pretrained("GAIR/daVinci-Dev-72B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use GAIR/daVinci-Dev-72B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GAIR/daVinci-Dev-72B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GAIR/daVinci-Dev-72B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/GAIR/daVinci-Dev-72B
- SGLang
How to use GAIR/daVinci-Dev-72B 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 "GAIR/daVinci-Dev-72B" \ --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": "GAIR/daVinci-Dev-72B", "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 "GAIR/daVinci-Dev-72B" \ --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": "GAIR/daVinci-Dev-72B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use GAIR/daVinci-Dev-72B with Docker Model Runner:
docker model run hf.co/GAIR/daVinci-Dev-72B
Commit History
-
Upload README.md with huggingface_hub
Verified signaturea32969d
-
Upload README.md with huggingface_hub
Verified signature8b8bba7
-
Upload model-00027-of-00028.safetensors with huggingface_hub
Verified signature16316c9 -
Upload model-00026-of-00028.safetensors with huggingface_hub
Verified signatureb31a8ff -
Upload model-00025-of-00028.safetensors with huggingface_hub
Verified signature5513ffa -
Upload model-00024-of-00028.safetensors with huggingface_hub
Verified signature90ed226 -
Upload model-00023-of-00028.safetensors with huggingface_hub
Verified signaturebc5ba7a -
Upload model-00022-of-00028.safetensors with huggingface_hub
Verified signaturedf31154 -
Upload model-00021-of-00028.safetensors with huggingface_hub
Verified signature11e6a4b -
Upload model-00020-of-00028.safetensors with huggingface_hub
Verified signature8201815 -
Upload model-00019-of-00028.safetensors with huggingface_hub
Verified signature5ec6deb -
Upload model-00018-of-00028.safetensors with huggingface_hub
Verified signature8f7c39b -
Upload model-00017-of-00028.safetensors with huggingface_hub
Verified signaturebb9e355 -
Upload model-00016-of-00028.safetensors with huggingface_hub
Verified signaturea7d534b -
Upload model-00015-of-00028.safetensors with huggingface_hub
Verified signaturecb90d53 -
Upload model-00014-of-00028.safetensors with huggingface_hub
Verified signature6c099af -
Upload model-00013-of-00028.safetensors with huggingface_hub
Verified signature26cfe09 -
Upload model-00012-of-00028.safetensors with huggingface_hub
Verified signature3feed4c -
Upload model-00011-of-00028.safetensors with huggingface_hub
Verified signaturea3fe1df -
Upload model-00010-of-00028.safetensors with huggingface_hub
Verified signaturee63b7ec -
Upload model-00009-of-00028.safetensors with huggingface_hub
Verified signaturef2b17e1 -
Upload model-00008-of-00028.safetensors with huggingface_hub
Verified signature9530b66 -
Upload model-00007-of-00028.safetensors with huggingface_hub
Verified signaturef80f010 -
Upload model-00006-of-00028.safetensors with huggingface_hub
Verified signature8787c36 -
Upload model-00005-of-00028.safetensors with huggingface_hub
Verified signatureb3f2394 -
Upload model-00004-of-00028.safetensors with huggingface_hub
Verified signature308b739 -
Upload model-00003-of-00028.safetensors with huggingface_hub
Verified signature928124e -
Upload model-00002-of-00028.safetensors with huggingface_hub
Verified signature96fa86e -
Upload model-00001-of-00028.safetensors with huggingface_hub
Verified signature59e08c5 -
Upload model-00000-of-00028.safetensors with huggingface_hub
Verified signature45f5b00
-
Upload README.md with huggingface_hub
Verified signature4060e70 -
Upload README.md with huggingface_hub
Verified signature6c9857f -
Upload README.md with huggingface_hub
Verified signature3350b90 -
Upload README.md with huggingface_hub
Verified signaturec044044 -
Delete teaser.png
Verified signature0c53431 -
Delete sii.png
Verified signatured70f73d -
Delete GAIR_Logo2.png
Verified signature1b09b0a -
Upload folder using huggingface_hub
Verified signature94e88e0 -
Upload vocab.json with huggingface_hub
Verified signature8f0ae2f -
Upload tokenizer_config.json with huggingface_hub
Verified signature946c95b -
Upload tokenizer.json with huggingface_hub
Verified signature27ba589 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature20556f7 -
Upload merges.txt with huggingface_hub
Verified signature120cbdb -
Upload generation_config.json with huggingface_hub
Verified signatureab1fbad -
Upload config.json with huggingface_hub
Verified signatured0e5d98 -
Upload folder using huggingface_hub
Verified signature26b3346 -
Upload README.md with huggingface_hub
Verified signaturec333073 -
Upload LICENSE with huggingface_hub
Verified signatureb67c011
-
initial commit
Verified signatureb623806