Text Generation
Transformers
Safetensors
mistral
Merge
mergekit
lazymergekit
mlabonne/NeuralBeagle14-7B
text-generation-inference
Instructions to use birgermoell/NeuralBeagle-Flashback with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use birgermoell/NeuralBeagle-Flashback with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="birgermoell/NeuralBeagle-Flashback")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("birgermoell/NeuralBeagle-Flashback") model = AutoModelForCausalLM.from_pretrained("birgermoell/NeuralBeagle-Flashback") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use birgermoell/NeuralBeagle-Flashback with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "birgermoell/NeuralBeagle-Flashback" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "birgermoell/NeuralBeagle-Flashback", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/birgermoell/NeuralBeagle-Flashback
- SGLang
How to use birgermoell/NeuralBeagle-Flashback 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 "birgermoell/NeuralBeagle-Flashback" \ --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": "birgermoell/NeuralBeagle-Flashback", "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 "birgermoell/NeuralBeagle-Flashback" \ --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": "birgermoell/NeuralBeagle-Flashback", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use birgermoell/NeuralBeagle-Flashback with Docker Model Runner:
docker model run hf.co/birgermoell/NeuralBeagle-Flashback
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -3,38 +3,31 @@ tags:
|
|
| 3 |
- merge
|
| 4 |
- mergekit
|
| 5 |
- lazymergekit
|
| 6 |
-
- timpal0l/Mistral-7B-v0.1-flashback-v2
|
| 7 |
- mlabonne/NeuralBeagle14-7B
|
| 8 |
base_model:
|
| 9 |
-
- timpal0l/Mistral-7B-v0.1-flashback-v2
|
| 10 |
- mlabonne/NeuralBeagle14-7B
|
| 11 |
---
|
| 12 |
|
| 13 |
# NeuralBeagle-Flashback
|
| 14 |
|
| 15 |
NeuralBeagle-Flashback is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
|
| 16 |
-
* [timpal0l/Mistral-7B-v0.1-flashback-v2](https://huggingface.co/timpal0l/Mistral-7B-v0.1-flashback-v2)
|
| 17 |
* [mlabonne/NeuralBeagle14-7B](https://huggingface.co/mlabonne/NeuralBeagle14-7B)
|
| 18 |
|
| 19 |
## 🧩 Configuration
|
| 20 |
|
| 21 |
```yaml
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
- filter: mlp
|
| 35 |
-
value: [1, 0.5, 0.7, 0.3, 0]
|
| 36 |
-
- value: 0.5
|
| 37 |
-
dtype: bfloat16
|
| 38 |
```
|
| 39 |
|
| 40 |
## 💻 Usage
|
|
|
|
| 3 |
- merge
|
| 4 |
- mergekit
|
| 5 |
- lazymergekit
|
|
|
|
| 6 |
- mlabonne/NeuralBeagle14-7B
|
| 7 |
base_model:
|
|
|
|
| 8 |
- mlabonne/NeuralBeagle14-7B
|
| 9 |
---
|
| 10 |
|
| 11 |
# NeuralBeagle-Flashback
|
| 12 |
|
| 13 |
NeuralBeagle-Flashback is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
|
|
|
|
| 14 |
* [mlabonne/NeuralBeagle14-7B](https://huggingface.co/mlabonne/NeuralBeagle14-7B)
|
| 15 |
|
| 16 |
## 🧩 Configuration
|
| 17 |
|
| 18 |
```yaml
|
| 19 |
+
models:
|
| 20 |
+
- model: timpal0l/Mistral-7B-v0.1-flashback-v2
|
| 21 |
+
# No parameters necessary for base model
|
| 22 |
+
- model: mlabonne/NeuralBeagle14-7B
|
| 23 |
+
parameters:
|
| 24 |
+
density: 0.53
|
| 25 |
+
weight: 0.6
|
| 26 |
+
merge_method: dare_ties
|
| 27 |
+
base_model: timpal0l/Mistral-7B-v0.1-flashback-v2
|
| 28 |
+
parameters:
|
| 29 |
+
int8_mask: true
|
| 30 |
+
dtype: bfloat16
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
```
|
| 32 |
|
| 33 |
## 💻 Usage
|