Text Generation
Transformers
Safetensors
mixtral
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use macadeliccc/SmaugDolphin-60B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use macadeliccc/SmaugDolphin-60B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="macadeliccc/SmaugDolphin-60B") 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("macadeliccc/SmaugDolphin-60B") model = AutoModelForCausalLM.from_pretrained("macadeliccc/SmaugDolphin-60B", 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 macadeliccc/SmaugDolphin-60B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "macadeliccc/SmaugDolphin-60B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "macadeliccc/SmaugDolphin-60B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/macadeliccc/SmaugDolphin-60B
- SGLang
How to use macadeliccc/SmaugDolphin-60B 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 "macadeliccc/SmaugDolphin-60B" \ --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": "macadeliccc/SmaugDolphin-60B", "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 "macadeliccc/SmaugDolphin-60B" \ --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": "macadeliccc/SmaugDolphin-60B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use macadeliccc/SmaugDolphin-60B with Docker Model Runner:
docker model run hf.co/macadeliccc/SmaugDolphin-60B
Commit History
-
Adding Evaluation Results (#2)
Verified signature- Adding Evaluation Results (e99b1f5f34304da1242089b4a96f07c5134721fd) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>ff76607
-
Update README.md
Verified signaturef7a2ad3 -
Update README.md
Verified signature7fcf467 -
Update README.md
Verified signatured10cc08 -
Rename Screenshot 2024-02-17 at 01-53-58 Text generation web UI.png to example.png
Verified signature47558e3 -
Upload Screenshot 2024-02-17 at 01-53-58 Text generation web UI.png
Verified signatureee9f0ed -
Upload 19 files
Verified signature8da7ebe -
Update README.md
Verified signatureecccd4b -
initial commit
Verified signature3476766