Instructions to use cloudyu/Mixtral_34Bx2_MoE_60B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cloudyu/Mixtral_34Bx2_MoE_60B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cloudyu/Mixtral_34Bx2_MoE_60B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cloudyu/Mixtral_34Bx2_MoE_60B") model = AutoModelForCausalLM.from_pretrained("cloudyu/Mixtral_34Bx2_MoE_60B") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use cloudyu/Mixtral_34Bx2_MoE_60B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cloudyu/Mixtral_34Bx2_MoE_60B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cloudyu/Mixtral_34Bx2_MoE_60B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/cloudyu/Mixtral_34Bx2_MoE_60B
- SGLang
How to use cloudyu/Mixtral_34Bx2_MoE_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 "cloudyu/Mixtral_34Bx2_MoE_60B" \ --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": "cloudyu/Mixtral_34Bx2_MoE_60B", "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 "cloudyu/Mixtral_34Bx2_MoE_60B" \ --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": "cloudyu/Mixtral_34Bx2_MoE_60B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use cloudyu/Mixtral_34Bx2_MoE_60B with Docker Model Runner:
docker model run hf.co/cloudyu/Mixtral_34Bx2_MoE_60B
Quant pls?
Hi,
@TheBloke @LoneStriker Would you like to quant this model which rank#1 on open llm leader board so far?
Thanks!
Hi,
@TheBloke @LoneStriker Would you like to quant this model which rank#1 on open llm leader board so far?
Thanks!
I'll put it in the queue. Hopefully it will quant properly with exl2; no guarantees for the various franken-MoEs.
exl2 quants will appear here (a couple already completed): https://huggingface.co/models?search=LoneStriker/Mixtral_34Bx2_MoE_60B
Wow, I have to say, this model is very very good. The only real negative is that the model itself seems to run inference slower than LLaMA-2 70B models though. Definitely one of the top models in my manual testing.
May I ask which question did you use?
I generally don't post my analysis questions specifically. But, my manual tests are along these lines:
- Ask model to generate an explanation of a technical subject, generate a story/poem/song/something creative, etc. but being specific about how I want the output to be structured and what information to include
- Iteratively ask to modify the provided output to expand in certain areas or sections (expand sections, explain importance of certain ideas, etc.)
- Ask the model to summarize the information and to provide the information in various formats (JSON, etc.)
- Ask the model to extend the information and provide new information outside of what was provided.
I'm looking for how well the model follows my directions and how coherent the answers are. Good models will very specifically follow all directions and answer all questions. No matter what the leaderboard shows, it's very consistent that the actual good models first and foremost follow instructions extremely well; the great models will often infer my intentions from the questions/instructions.