Instructions to use xDAN-AI/xDAN-L1Mix-DeepThinking-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xDAN-AI/xDAN-L1Mix-DeepThinking-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="xDAN-AI/xDAN-L1Mix-DeepThinking-v2")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("xDAN-AI/xDAN-L1Mix-DeepThinking-v2") model = AutoModelForCausalLM.from_pretrained("xDAN-AI/xDAN-L1Mix-DeepThinking-v2") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use xDAN-AI/xDAN-L1Mix-DeepThinking-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "xDAN-AI/xDAN-L1Mix-DeepThinking-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xDAN-AI/xDAN-L1Mix-DeepThinking-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/xDAN-AI/xDAN-L1Mix-DeepThinking-v2
- SGLang
How to use xDAN-AI/xDAN-L1Mix-DeepThinking-v2 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 "xDAN-AI/xDAN-L1Mix-DeepThinking-v2" \ --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": "xDAN-AI/xDAN-L1Mix-DeepThinking-v2", "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 "xDAN-AI/xDAN-L1Mix-DeepThinking-v2" \ --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": "xDAN-AI/xDAN-L1Mix-DeepThinking-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use xDAN-AI/xDAN-L1Mix-DeepThinking-v2 with Docker Model Runner:
docker model run hf.co/xDAN-AI/xDAN-L1Mix-DeepThinking-v2
| Metrics | Scores |
|---|---|
| Average | 63.36 |
| ARC | 62.37 |
| HellaSwag | 82.32 |
| MMLU | 59.69 |
| TruthfulQA | 55.38 |
| Winogrande | 76.4 |
| GSM8K | 43.97 |
Created by xDAN-AI at 2023-11-18
Disclaimer
We employ data compliance checking algorithms during the training of our language model to strive for the highest degree of compliance. However, given the intricate nature of data and the vast array of potential usage scenarios for the model, we cannot assure that it will always generate correct and reasonable outputs. Users should be cognizant of the risk of the model producing problematic outputs. Our organization will not bear responsibility for any risks or issues stemming from misuse, misguidance, illegal use, and related misinformation, as well as any consequent data security concerns.
About xDAN-AI xDAN-AI is a top lead high-performance model factory. For detailed information and further insights into our cutting-edge technology and offerings, please visit our website: www.xdan.ai.
- Downloads last month
- -