Home baked
Collection
Home-baked merges and tunes. • 12 items • Updated
How to use rAIfle/0x01-8x7b-hf with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="rAIfle/0x01-8x7b-hf") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("rAIfle/0x01-8x7b-hf")
model = AutoModelForCausalLM.from_pretrained("rAIfle/0x01-8x7b-hf")How to use rAIfle/0x01-8x7b-hf with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "rAIfle/0x01-8x7b-hf"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "rAIfle/0x01-8x7b-hf",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/rAIfle/0x01-8x7b-hf
How to use rAIfle/0x01-8x7b-hf with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "rAIfle/0x01-8x7b-hf" \
--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": "rAIfle/0x01-8x7b-hf",
"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 "rAIfle/0x01-8x7b-hf" \
--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": "rAIfle/0x01-8x7b-hf",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use rAIfle/0x01-8x7b-hf with Docker Model Runner:
docker model run hf.co/rAIfle/0x01-8x7b-hf
here we go again. multi-step merge, various models involved at various ratios with various methods.
this thing came to me in a fever dream when I was hung over, but after slightly tweaking the recipe it turned out surprisingly decent. using with the settings included.
The following settings have proved to work good too:
# primordial_slop_a:
- model: mistralai/Mixtral-8x7B-v0.1+retrieval-bar/Mixtral-8x7B-v0.1_case-briefs
- model: mistralai/Mixtral-8x7B-v0.1+SeanWu25/Mixtral_8x7b_Medicine
- model: mistralai/Mixtral-8x7B-v0.1+SeanWu25/Mixtral_8x7b_WuKurtz
- model: mistralai/Mixtral-8x7B-v0.1+Epiculous/crunchy-onion-lora
- model: mistralai/Mixtral-8x7B-v0.1+maxkretchmer/gc-mixtral
# primordial_slop_b:
- model: Envoid/Mixtral-Instruct-ITR-8x7B
- model: crestf411/daybreak-mixtral-8x7b-v1.0-hf
- model: NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO
- model: orangetin/OpenHermes-Mixtral-8x7B
- model: mistralai/Mixtral-8x7B-Instruct-v0.1+idegroup/PhyAssistant
- model: ycros/crunchy-onion-nx
- model: jondurbin/bagel-dpo-8x7b-v0.2
- model: amoldwalunj/Mixtral-8x7B-Instruct-v0.1-legal_finetune_mixtral_32k
# primordial_slop_c: a+b
# primordial_slop_d:
- model: Sao10K/Sensualize-Mixtral-bf16
- model: Envoid/Mixtral-Instruct-ITR-DADA-8x7B