Instructions to use GenTrendGPT/Moey with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GenTrendGPT/Moey with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="GenTrendGPT/Moey", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("GenTrendGPT/Moey", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("GenTrendGPT/Moey", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use GenTrendGPT/Moey with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GenTrendGPT/Moey" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GenTrendGPT/Moey", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/GenTrendGPT/Moey
- SGLang
How to use GenTrendGPT/Moey 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 "GenTrendGPT/Moey" \ --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": "GenTrendGPT/Moey", "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 "GenTrendGPT/Moey" \ --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": "GenTrendGPT/Moey", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use GenTrendGPT/Moey with Docker Model Runner:
docker model run hf.co/GenTrendGPT/Moey
Download mergekit_moe_config.yml from GenTrendGPT/Moey: direct link, hf CLI and curl.
- Browser
- Download file 634 Bytes
-
https://huggingface.co/GenTrendGPT/Moey/resolve/main/mergekit_moe_config.yml
- Command line
-
hf download hf://GenTrendGPT/Moey/mergekit_moe_config.yml
-
curl -L -o mergekit_moe_config.yml https://huggingface.co/GenTrendGPT/Moey/resolve/main/mergekit_moe_config.yml
634 Bytes
| base_model: MBZUAI/MobiLlama-05B | |
| dtype: float16 | |
| gate_mode: random | |
| experts: | |
| - source_model: Azurro/APT3-500M-Base | |
| positive_prompts: ["You are a knowledgeable and supportive assistant chatbot, ready to provide accurate and thoughtful answers to a wide range of questions as well as storytelling and writing books."] | |
| - source_model: sail/Sailor-0.5B | |
| positive_prompts: ["You are an expert assistant specializing in coding, app creation, and solving math problems, offering precise guidance, clear explanations, and effective strategies for programming challenges, app development needs, and enhancing logical reasoning."] | |