Summarization
GGUF
English
llama
text-summarization
text2text-generation
news
articles
minibase
standard-model
4096-context
Eval Results (legacy)
Instructions to use Minibase/Content-Preview-Generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Minibase/Content-Preview-Generator with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Minibase/Content-Preview-Generator", filename="model.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Minibase/Content-Preview-Generator with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Minibase/Content-Preview-Generator # Run inference directly in the terminal: llama-cli -hf Minibase/Content-Preview-Generator
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Minibase/Content-Preview-Generator # Run inference directly in the terminal: llama-cli -hf Minibase/Content-Preview-Generator
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 Minibase/Content-Preview-Generator # Run inference directly in the terminal: ./llama-cli -hf Minibase/Content-Preview-Generator
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 Minibase/Content-Preview-Generator # Run inference directly in the terminal: ./build/bin/llama-cli -hf Minibase/Content-Preview-Generator
Use Docker
docker model run hf.co/Minibase/Content-Preview-Generator
- LM Studio
- Jan
- Ollama
How to use Minibase/Content-Preview-Generator with Ollama:
ollama run hf.co/Minibase/Content-Preview-Generator
- Unsloth Studio new
How to use Minibase/Content-Preview-Generator with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Minibase/Content-Preview-Generator to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Minibase/Content-Preview-Generator to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Minibase/Content-Preview-Generator to start chatting
- Docker Model Runner
How to use Minibase/Content-Preview-Generator with Docker Model Runner:
docker model run hf.co/Minibase/Content-Preview-Generator
- Lemonade
How to use Minibase/Content-Preview-Generator with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Minibase/Content-Preview-Generator
Run and chat with the model
lemonade run user.Content-Preview-Generator-{{QUANT_TAG}}List all available models
lemonade list
Upload config.json with huggingface_hub
Browse files- config.json +29 -0
config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "Content-Preview-Generator",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"LlamaForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"bos_token_id": 1,
|
| 7 |
+
"eos_token_id": 2,
|
| 8 |
+
"hidden_act": "silu",
|
| 9 |
+
"hidden_size": 2048,
|
| 10 |
+
"initializer_range": 0.02,
|
| 11 |
+
"intermediate_size": 5632,
|
| 12 |
+
"max_position_embeddings": 8192,
|
| 13 |
+
"model_type": "llama",
|
| 14 |
+
"num_attention_heads": 16,
|
| 15 |
+
"num_hidden_layers": 16,
|
| 16 |
+
"num_key_value_heads": 16,
|
| 17 |
+
"pretraining_tp": 1,
|
| 18 |
+
"rms_norm_eps": 1e-05,
|
| 19 |
+
"rope_scaling": null,
|
| 20 |
+
"tie_word_embeddings": false,
|
| 21 |
+
"torch_dtype": "float16",
|
| 22 |
+
"transformers_version": "4.36.0",
|
| 23 |
+
"use_cache": true,
|
| 24 |
+
"vocab_size": 49152,
|
| 25 |
+
"quantization_config": {
|
| 26 |
+
"quant_method": "gguf",
|
| 27 |
+
"quantization_type": "Q8_0"
|
| 28 |
+
}
|
| 29 |
+
}
|