128k Context
Collection
128 Extended Context Models • 4 items • Updated • 1
How to use LeroyDyer/Mixtral_AI_Vision_128k_7b with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-text-to-text", model="LeroyDyer/Mixtral_AI_Vision_128k_7b", trust_remote_code=True) # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("LeroyDyer/Mixtral_AI_Vision_128k_7b", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("LeroyDyer/Mixtral_AI_Vision_128k_7b", trust_remote_code=True)How to use LeroyDyer/Mixtral_AI_Vision_128k_7b with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="LeroyDyer/Mixtral_AI_Vision_128k_7b", filename="mistral-7b-mmproj-v1.5-Q4_1.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
How to use LeroyDyer/Mixtral_AI_Vision_128k_7b with llama.cpp:
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf LeroyDyer/Mixtral_AI_Vision_128k_7b:Q4_1 # Run inference directly in the terminal: llama-cli -hf LeroyDyer/Mixtral_AI_Vision_128k_7b:Q4_1
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf LeroyDyer/Mixtral_AI_Vision_128k_7b:Q4_1 # Run inference directly in the terminal: llama-cli -hf LeroyDyer/Mixtral_AI_Vision_128k_7b:Q4_1
# 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_Vision_128k_7b:Q4_1 # Run inference directly in the terminal: ./llama-cli -hf LeroyDyer/Mixtral_AI_Vision_128k_7b:Q4_1
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_Vision_128k_7b:Q4_1 # Run inference directly in the terminal: ./build/bin/llama-cli -hf LeroyDyer/Mixtral_AI_Vision_128k_7b:Q4_1
docker model run hf.co/LeroyDyer/Mixtral_AI_Vision_128k_7b:Q4_1
How to use LeroyDyer/Mixtral_AI_Vision_128k_7b with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "LeroyDyer/Mixtral_AI_Vision_128k_7b"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "LeroyDyer/Mixtral_AI_Vision_128k_7b",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/LeroyDyer/Mixtral_AI_Vision_128k_7b:Q4_1
How to use LeroyDyer/Mixtral_AI_Vision_128k_7b with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "LeroyDyer/Mixtral_AI_Vision_128k_7b" \
--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": "LeroyDyer/Mixtral_AI_Vision_128k_7b",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "LeroyDyer/Mixtral_AI_Vision_128k_7b" \
--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": "LeroyDyer/Mixtral_AI_Vision_128k_7b",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use LeroyDyer/Mixtral_AI_Vision_128k_7b with Ollama:
ollama run hf.co/LeroyDyer/Mixtral_AI_Vision_128k_7b:Q4_1
How to use LeroyDyer/Mixtral_AI_Vision_128k_7b 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_Vision_128k_7b 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_Vision_128k_7b to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for LeroyDyer/Mixtral_AI_Vision_128k_7b to start chatting
How to use LeroyDyer/Mixtral_AI_Vision_128k_7b with Docker Model Runner:
docker model run hf.co/LeroyDyer/Mixtral_AI_Vision_128k_7b:Q4_1
How to use LeroyDyer/Mixtral_AI_Vision_128k_7b with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull LeroyDyer/Mixtral_AI_Vision_128k_7b:Q4_1
lemonade run user.Mixtral_AI_Vision_128k_7b-Q4_1
lemonade list
If you want to use vision functionality:
Make sure you are using the latest version of KoboldCpp.
To use the multimodal capabilities of this model, such as vision, you also need to load the specified mmproj file, you can get it here.
https://huggingface.co/LeroyDyer/Mixtral_AI_Vision_128k/blob/main/mmproj-model-f16.gguf
You can load the mmproj by using the corresponding section in the interface:
KoboldCpp now supports Vision via Multimodal Projectors (aka LLaVA), allowing it to perceive and react to images! Load a suitable --mmproj file or select it in the GUI launcher to use vision capabilities. (Not working on Vulkan)
Note: This is NOT limited to only LLaVA models, any compatible model of the same size and architecture can gain vision capabilities!
Simply grab a 200mb mmproj file for your architecture here,
https://huggingface.co/koboldcpp/mmproj
load it with --mmproj and stick it into your favorite compatible model, and it will be able to see images as well!
This model was merged using the linear merge method.
The following models were included in the merge:
8-bit
Base model
ChaoticNeutrals/Eris_PrimeV3-Vision-7B