Text Generation
Transformers
Safetensors
English
glm4_moe_lite
text-generation-inference
unsloth
conversational
Instructions to use droplychee/droplychee-moe-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use droplychee/droplychee-moe-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="droplychee/droplychee-moe-v2") 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("droplychee/droplychee-moe-v2") model = AutoModelForCausalLM.from_pretrained("droplychee/droplychee-moe-v2", 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 droplychee/droplychee-moe-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "droplychee/droplychee-moe-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "droplychee/droplychee-moe-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/droplychee/droplychee-moe-v2
- SGLang
How to use droplychee/droplychee-moe-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 "droplychee/droplychee-moe-v2" \ --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": "droplychee/droplychee-moe-v2", "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 "droplychee/droplychee-moe-v2" \ --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": "droplychee/droplychee-moe-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use droplychee/droplychee-moe-v2 with Docker Model Runner:
docker model run hf.co/droplychee/droplychee-moe-v2
Commit History
-
(Trained with Unsloth)
Verified signature088f6df -
(Trained with Unsloth)
Verified signature53ca59d -
(Trained with Unsloth)
Verified signatureab4b6af -
(Trained with Unsloth)
Verified signature8b76086 -
(Trained with Unsloth)
Verified signatureba8aa77 -
(Trained with Unsloth)
Verified signatured8840e5 -
(Trained with Unsloth)
Verified signature699cb04 -
(Trained with Unsloth)
Verified signaturecf77885 -
(Trained with Unsloth)
Verified signaturef7cd2a5 -
(Trained with Unsloth)
Verified signatureea4adde -
(Trained with Unsloth)
Verified signature6ad022d -
(Trained with Unsloth)
Verified signaturef21c97c -
(Trained with Unsloth)
Verified signature2cea94e -
(Trained with Unsloth)
Verified signature21b9bab -
(Trained with Unsloth)
Verified signature5d24451 -
(Trained with Unsloth)
Verified signature1f8dea6 -
(Trained with Unsloth)
Verified signature40a5eda -
(Trained with Unsloth)
Verified signature832e077 -
(Trained with Unsloth)
Verified signature35ad4c5 -
(Trained with Unsloth)
Verified signature989712d -
(Trained with Unsloth)
Verified signatured758eca -
(Trained with Unsloth)
Verified signaturef0be857 -
(Trained with Unsloth)
Verified signature70cfb54 -
(Trained with Unsloth)
Verified signature65d2da9 -
(Trained with Unsloth)
Verified signature805b4d9 -
(Trained with Unsloth)
Verified signaturecff8587 -
(Trained with Unsloth)
Verified signature5157044 -
(Trained with Unsloth)
Verified signature20794c7 -
(Trained with Unsloth)
Verified signature2da1387 -
(Trained with Unsloth)
Verified signature7d184e9 -
(Trained with Unsloth)
Verified signature1fdd189 -
(Trained with Unsloth)
Verified signature6506581 -
(Trained with Unsloth)
Verified signaturef262bf7 -
(Trained with Unsloth)
Verified signature35477cf -
(Trained with Unsloth)
Verified signature189ffbc -
(Trained with Unsloth)
Verified signaturec352503 -
(Trained with Unsloth)
Verified signatureef393a4 -
(Trained with Unsloth)
Verified signaturefe03e78 -
(Trained with Unsloth)
Verified signaturec7aec3c -
(Trained with Unsloth)
Verified signature374a4a5 -
(Trained with Unsloth)
Verified signatureac524e0 -
(Trained with Unsloth)
Verified signature7ea4e0a -
(Trained with Unsloth)
Verified signature6dbc59d -
(Trained with Unsloth)
Verified signature6c343c4 -
(Trained with Unsloth)
Verified signature607d50e -
(Trained with Unsloth)
Verified signature09ab54a -
(Trained with Unsloth)
Verified signature5b9b197 -
(Trained with Unsloth)
Verified signaturec770fa1 -
(Trained with Unsloth)
Verified signature5daa477 -
(Trained with Unsloth)
Verified signature5d48fa0