Home baked
Collection
Home-baked merges and tunes. • 12 items • Updated
How to use rAIfle/friend-8x7B-hf with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="rAIfle/friend-8x7B-hf") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("rAIfle/friend-8x7B-hf")
model = AutoModelForCausalLM.from_pretrained("rAIfle/friend-8x7B-hf")How to use rAIfle/friend-8x7B-hf with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "rAIfle/friend-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/friend-8x7B-hf",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/rAIfle/friend-8x7B-hf
How to use rAIfle/friend-8x7B-hf with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "rAIfle/friend-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/friend-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/friend-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/friend-8x7B-hf",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use rAIfle/friend-8x7B-hf with Docker Model Runner:
docker model run hf.co/rAIfle/friend-8x7B-hf
Several-staged merge this time. Actually decent, from my testings.
Use ChatML or Alpaca, both seemed to work though I liked the outputs from ChatML more.
models:
- model: mistralai/Mixtral-8x7B-v0.1+/ai/LLM/tmp/pefts/daybreak-peft/mixtral-8x7b
parameters:
weight: 0.65
- model: mistralai/Mixtral-8x7B-v0.1+retrieval-bar/Mixtral-8x7B-v0.1_case-briefs
parameters:
weight: 0.25
merge_method: task_arithmetic
base_model: mistralai/Mixtral-8x7B-v0.1
dtype: float16
models:
- model: mistralai/Mixtral-8x7B-Instruct-v0.1+SeanWu25/Mixtral_8x7b_Medicine
parameters:
weight: 0.33
- model: NeverSleep/Noromaid-v0.4-Mixtral-Instruct-8x7b-Zloss
parameters:
weight: 0.15
merge_method: task_arithmetic
base_model: mistralai/Mixtral-8x7B-Instruct-v0.1
dtype: float16
This is a merge of pre-trained language models created using mergekit.
This model was merged using the SLERP merge method.
The following models were included in the merge:
The following YAML configuration was used to produce this model:
models:
- model: ./temp-output-base
- model: ./temp-output-instruct
merge_method: slerp
base_model: ./temp-output-base
parameters:
t:
- value: 0.5
dtype: float16