Text Generation
Transformers
Safetensors
mistral
Merge
mergekit
lazymergekit
CultriX/MergeCeption-7B-v3
text-generation-inference
Instructions to use ichigoberry/pandafish-dt-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ichigoberry/pandafish-dt-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ichigoberry/pandafish-dt-7b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ichigoberry/pandafish-dt-7b") model = AutoModelForCausalLM.from_pretrained("ichigoberry/pandafish-dt-7b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ichigoberry/pandafish-dt-7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ichigoberry/pandafish-dt-7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ichigoberry/pandafish-dt-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ichigoberry/pandafish-dt-7b
- SGLang
How to use ichigoberry/pandafish-dt-7b 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 "ichigoberry/pandafish-dt-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": "ichigoberry/pandafish-dt-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "ichigoberry/pandafish-dt-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": "ichigoberry/pandafish-dt-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ichigoberry/pandafish-dt-7b with Docker Model Runner:
docker model run hf.co/ichigoberry/pandafish-dt-7b
pandafish-dt-7b
pandafish-dt-7b is a dare_ties merge of Experiment26-7B and MergeCeption-7B-v3 using LazyMergekit by mlabonne
π¬ Try it
Playground on Huggingface Space
β‘ Quantized models
- GGUF: ichigoberry/pandafish-dt-7b-GGUF
- GGUF (w/ IQ): mradermacher/pandafish-dt-7b-GGUF
- MLX: 4bit 8bit
π Evals
Evals from the Nous Benchmark suite:
| Model | Average | AGIEval | GPT4All | TruthfulQA | Bigbench |
|---|---|---|---|---|---|
| AlphaMonarch-7B π | 62.74 | 45.37 | 77.01 | 78.39 | 50.2 |
| Monarch-7B π | 62.68 | 45.48 | 77.07 | 78.04 | 50.14 |
| π‘ pandafish-dt-7b π | 62.65 | 45.24 | 77.19 | 78.41 | 49.76 |
| MonarchPipe-7B-slerp π | 58.77 | 46.12 | 74.89 | 66.59 | 47.49 |
| NeuralHermes-2.5-Mistral-7B π | 53.51 | 43.67 | 73.24 | 55.37 | 41.76 |
| Mistral-7B-Instruct-v0.2 π | 54.81 | 38.5 | 71.64 | 66.82 | 42.29 |
| OpenHermes-2.5-Mistral-7B π | 52.42 | 42.75 | 72.99 | 52.99 | 40.94 |
| pandafish-7b π | 51.99 | 40 | 74.23 | 53.22 | 40.51 |
π§© Configuration
models:
- model: yam-peleg/Experiment26-7B
# No parameters necessary for base model
- model: CultriX/MergeCeption-7B-v3
parameters:
density: 0.53
weight: 0.4
merge_method: dare_ties
base_model: yam-peleg/Experiment26-7B
parameters:
int8_mask: true
dtype: bfloat16
π» Usage
!pip install -qU transformers accelerate
from transformers import AutoTokenizer
import transformers
import torch
model = "ichigoberry/pandafish-dt-7b"
messages = [{"role": "user", "content": "What is a large language model?"}]
tokenizer = AutoTokenizer.from_pretrained(model)
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
pipeline = transformers.pipeline(
"text-generation",
model=model,
torch_dtype=torch.float16,
device_map="auto",
)
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])
- Downloads last month
- 46
Model tree for ichigoberry/pandafish-dt-7b
Base model
CultriX/MergeCeption-7B-v3