MEGA MIND
Collection
Mixture of Experts enable models to be pretrained with far less compute, which means you can dramatically scale up the model or dataset size with the • 3 items • Updated • 1
How to use LeroyDyer/Mixtral_AI_1x4 with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("LeroyDyer/Mixtral_AI_1x4", device_map="auto")How to use LeroyDyer/Mixtral_AI_1x4 with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf LeroyDyer/Mixtral_AI_1x4:Q4_K_S # Run inference directly in the terminal: llama cli -hf LeroyDyer/Mixtral_AI_1x4:Q4_K_S
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf LeroyDyer/Mixtral_AI_1x4:Q4_K_S # Run inference directly in the terminal: llama cli -hf LeroyDyer/Mixtral_AI_1x4:Q4_K_S
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf LeroyDyer/Mixtral_AI_1x4:Q4_K_S # Run inference directly in the terminal: ./llama-cli -hf LeroyDyer/Mixtral_AI_1x4:Q4_K_S
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf LeroyDyer/Mixtral_AI_1x4:Q4_K_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf LeroyDyer/Mixtral_AI_1x4:Q4_K_S
docker model run hf.co/LeroyDyer/Mixtral_AI_1x4:Q4_K_S
How to use LeroyDyer/Mixtral_AI_1x4 with Ollama:
ollama run hf.co/LeroyDyer/Mixtral_AI_1x4:Q4_K_S
How to use LeroyDyer/Mixtral_AI_1x4 with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for LeroyDyer/Mixtral_AI_1x4 to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for LeroyDyer/Mixtral_AI_1x4 to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for LeroyDyer/Mixtral_AI_1x4 to start chatting
How to use LeroyDyer/Mixtral_AI_1x4 with Docker Model Runner:
docker model run hf.co/LeroyDyer/Mixtral_AI_1x4:Q4_K_S
How to use LeroyDyer/Mixtral_AI_1x4 with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull LeroyDyer/Mixtral_AI_1x4:Q4_K_S
lemonade run user.Mixtral_AI_1x4-Q4_K_S
lemonade list
This model was converted to GGUF format from LeroyDyer/Mixtral_AI_Cyber_MegaMind using llama.cpp via the GGML.ai's GGUF-it space.
Refer to the original model card for more details on the model.
Install Llama.cpp through brew.
brew install ggerganov/ggerganov/llama.cpp
Invoke the llama.cpp server or the CLI.
CLI:
llama-cli --hf-repo LeroyDyer/Mixtral_AI_Cyber_MegaMind-Q4_K_S-GGUF --model mixtral_ai_cyber_megamind.Q4_K_S.gguf -p "The meaning to life and the universe is "
Server:
llama-server --hf-repo LeroyDyer/Mixtral_AI_Cyber_MegaMind-Q4_K_S-GGUF --model mixtral_ai_cyber_megamind.Q4_K_S.gguf -c 2048
Note: You can also use this checkpoint directly through the usage steps listed in the llama.cpp repo as well.
git clone https://github.com/ggerganov/llama.cpp && cd llama.cpp && make && ./main -m mixtral_ai_cyber_megamind.Q4_K_S.gguf -n 128
4-bit