Instructions to use TheBloke/NeuralPipe-7B-slerp-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/NeuralPipe-7B-slerp-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("TheBloke/NeuralPipe-7B-slerp-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use TheBloke/NeuralPipe-7B-slerp-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf TheBloke/NeuralPipe-7B-slerp-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TheBloke/NeuralPipe-7B-slerp-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf TheBloke/NeuralPipe-7B-slerp-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TheBloke/NeuralPipe-7B-slerp-GGUF:Q4_K_M
Use pre-built binary
# 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 TheBloke/NeuralPipe-7B-slerp-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf TheBloke/NeuralPipe-7B-slerp-GGUF:Q4_K_M
Build from source code
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 TheBloke/NeuralPipe-7B-slerp-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf TheBloke/NeuralPipe-7B-slerp-GGUF:Q4_K_M
Use Docker
docker model run hf.co/TheBloke/NeuralPipe-7B-slerp-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use TheBloke/NeuralPipe-7B-slerp-GGUF with Ollama:
ollama run hf.co/TheBloke/NeuralPipe-7B-slerp-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use TheBloke/NeuralPipe-7B-slerp-GGUF with Docker Model Runner:
docker model run hf.co/TheBloke/NeuralPipe-7B-slerp-GGUF:Q4_K_M
- Lemonade
How to use TheBloke/NeuralPipe-7B-slerp-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull TheBloke/NeuralPipe-7B-slerp-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.NeuralPipe-7B-slerp-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload README.md
Browse files
README.md
CHANGED
|
@@ -350,4 +350,35 @@ parameters:
|
|
| 350 |
dtype: bfloat16
|
| 351 |
```
|
| 352 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 353 |
<!-- original-model-card end -->
|
|
|
|
| 350 |
dtype: bfloat16
|
| 351 |
```
|
| 352 |
|
| 353 |
+
## 💻 Usage
|
| 354 |
+
|
| 355 |
+
```python
|
| 356 |
+
!pip install -qU transformers accelerate
|
| 357 |
+
|
| 358 |
+
from transformers import AutoTokenizer
|
| 359 |
+
import transformers
|
| 360 |
+
import torch
|
| 361 |
+
|
| 362 |
+
model = "mlabonne/NeuralPipe-7B-slerp"
|
| 363 |
+
messages = [{"role": "user", "content": "What is a large language model?"}]
|
| 364 |
+
|
| 365 |
+
tokenizer = AutoTokenizer.from_pretrained(model)
|
| 366 |
+
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 367 |
+
pipeline = transformers.pipeline(
|
| 368 |
+
"text-generation",
|
| 369 |
+
model=model,
|
| 370 |
+
torch_dtype=torch.float16,
|
| 371 |
+
device_map="auto",
|
| 372 |
+
)
|
| 373 |
+
|
| 374 |
+
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
|
| 375 |
+
print(outputs[0]["generated_text"])
|
| 376 |
+
```
|
| 377 |
+
|
| 378 |
+
Output:
|
| 379 |
+
|
| 380 |
+
```
|
| 381 |
+
A large language model is an AI system that uses deep learning techniques to process and understand vast amounts of natural language data. It is designed to generate human-like text, perform complex language tasks, and understand the context, nuance, and meaning of textual data. These models are trained on large datasets, often including billions of words, to learn the patterns and relationships in language. As a result, they can generate coherent and contextually relevant text, answer questions, and perform a variety of other language-related tasks. Some well-known large language models include OpenAI's GPT-3, Google's BERT, and Facebook's RoBERTa.
|
| 382 |
+
```
|
| 383 |
+
|
| 384 |
<!-- original-model-card end -->
|