Text Generation
Transformers
PyTorch
Safetensors
English
llama
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use dphn/dolphin-2.2-70b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dphn/dolphin-2.2-70b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dphn/dolphin-2.2-70b") 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("dphn/dolphin-2.2-70b") model = AutoModelForCausalLM.from_pretrained("dphn/dolphin-2.2-70b", 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 dphn/dolphin-2.2-70b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dphn/dolphin-2.2-70b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dphn/dolphin-2.2-70b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dphn/dolphin-2.2-70b
- SGLang
How to use dphn/dolphin-2.2-70b 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 "dphn/dolphin-2.2-70b" \ --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": "dphn/dolphin-2.2-70b", "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 "dphn/dolphin-2.2-70b" \ --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": "dphn/dolphin-2.2-70b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use dphn/dolphin-2.2-70b with Docker Model Runner:
docker model run hf.co/dphn/dolphin-2.2-70b
Commit History
-
fix old discord link
Verified signaturec0a82fa
-
Update README.md
Verified signature79f56c2
-
Adding Evaluation Results (#7)
Verified signature- Adding Evaluation Results (d4acd78d3521fda95b066037f372e5360ea5ad64) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>b18eaab -
Adding `safetensors` variant of this model (#8)
Verified signature- Adding `safetensors` variant of this model (d9ae2cd3b1b2e5090397cb0e22e324225626ab4b) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>e69f1a7
-
Update tokenizer_config.json
6a2ddfb
-
Update README.md
eeb61b1 -
Update README.md
43f4f78 -
Update config.json
6dc027c -
Update README.md
fab2e82 -
Update README.md
2e08c08 -
Update README.md
10fda0b -
Update README.md
560c310 -
Upload folder using huggingface_hub
1f5ea35 -
Upload folder using huggingface_hub
c3ee753 -
Update README.md
a72ee18 -
initial commit
1c16164