Instructions to use Naphula/Meme-Trix-MoE-14B-A8B-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Naphula/Meme-Trix-MoE-14B-A8B-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Naphula/Meme-Trix-MoE-14B-A8B-v1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Naphula/Meme-Trix-MoE-14B-A8B-v1") model = AutoModelForMultimodalLM.from_pretrained("Naphula/Meme-Trix-MoE-14B-A8B-v1") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Naphula/Meme-Trix-MoE-14B-A8B-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Naphula/Meme-Trix-MoE-14B-A8B-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Naphula/Meme-Trix-MoE-14B-A8B-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Naphula/Meme-Trix-MoE-14B-A8B-v1
- SGLang
How to use Naphula/Meme-Trix-MoE-14B-A8B-v1 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 "Naphula/Meme-Trix-MoE-14B-A8B-v1" \ --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": "Naphula/Meme-Trix-MoE-14B-A8B-v1", "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 "Naphula/Meme-Trix-MoE-14B-A8B-v1" \ --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": "Naphula/Meme-Trix-MoE-14B-A8B-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Naphula/Meme-Trix-MoE-14B-A8B-v1 with Docker Model Runner:
docker model run hf.co/Naphula/Meme-Trix-MoE-14B-A8B-v1
⚠️ Warning: This model can produce narratives and RP that contain violent and graphic erotic content. Adjust your system prompt accordingly, and use Llama 3 chat template.
Meme-Trix MoE 14B A8B v1
A custom built Llama 3.1 8B MoE (Mixture of Experts) merge which combines Morpheus v1 with Assistant Pepe. The merge is suprisingly intelligent, detailed, and based. Scores ~15K at Q0 Bench. Fully uncensored and almost as fast as 8B dense. It also appears to have strong context retrieval ability. Asked for a summary at 16K and it works flawlessly (did not test higher yet).
If you want to merge custom Llama MoE you can add these scripts to your mergekit environment:
- mergekit-main\mergekit\architecture\moe_defs.py
- mergekit-main\mergekit\moe_init_.py
- mergekit-main\mergekit\moe\llama.py
Then assign the num_experts_per_tok in config.json (or the config.yaml)
Recommended Settings
(bolded kobold non-defaults)
- Temp 1.0
- TopNSigma 1.25
- Min-P 0.1
- Repetition Penalty 1.08
- Top-P 1.0
- Top-K 100
- Top-A 0
- Typical Sampling 1
- Tail-Free Sampling 1
- Presence Penalty 0
- Sampler Seed -1
- Rp.Range 360
- Rp.Slope 0.7
- Smoothing Factor 0
- Smoothing Curve 1
- DynaTemp 0
- Mirostat Mode OFF ("2" enhances creativity but also errors)
- Mirostat Tau 5
- Mirostat Eta 0.1
- DRY Multiplier 0.8
- DRY Base 1.75
- DRY A.Len 2
- DRY L.Len 320
- XTC Threshold 0.1
- XTC Probability 0.08 (The "Anti-Cliche" Shield)
- DynaTemp ON (The "Poor Man's Fading Mirostat")
- Minimum Temperature 0.65
- Maximum Temperature 1.35
- Temperature 1.0
- DynaTemp-Range 0.35
- DynaTemp-Exponent 1
- Downloads last month
- 3
