Instructions to use MergeFuel/Emerhyst-2x20B-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MergeFuel/Emerhyst-2x20B-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MergeFuel/Emerhyst-2x20B-Base")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MergeFuel/Emerhyst-2x20B-Base") model = AutoModelForCausalLM.from_pretrained("MergeFuel/Emerhyst-2x20B-Base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MergeFuel/Emerhyst-2x20B-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MergeFuel/Emerhyst-2x20B-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MergeFuel/Emerhyst-2x20B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MergeFuel/Emerhyst-2x20B-Base
- SGLang
How to use MergeFuel/Emerhyst-2x20B-Base 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 "MergeFuel/Emerhyst-2x20B-Base" \ --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": "MergeFuel/Emerhyst-2x20B-Base", "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 "MergeFuel/Emerhyst-2x20B-Base" \ --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": "MergeFuel/Emerhyst-2x20B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MergeFuel/Emerhyst-2x20B-Base with Docker Model Runner:
docker model run hf.co/MergeFuel/Emerhyst-2x20B-Base
- Xet hash:
- 0731ff1be9a3fe1591693a2adfbc960a70f939dc4ef4c44953e48aea8a3387b4
- Size of remote file:
- 9.91 GB
- SHA256:
- 376fbbd012d7d4cee0700146d0bd9029a07e72e44b7e54abfabd7a02b091f3cf
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.