Text Generation
Transformers
Safetensors
GGUF
Portuguese
English
pt-br
portuguese
programming
logic
math
quantized
iq4_xs
mobile
lora
minicpm
Instructions to use Davizig10jojo/BlazerApex-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Davizig10jojo/BlazerApex-2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Davizig10jojo/BlazerApex-2B")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Davizig10jojo/BlazerApex-2B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Davizig10jojo/BlazerApex-2B 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 Davizig10jojo/BlazerApex-2B:IQ4_XS # Run inference directly in the terminal: llama cli -hf Davizig10jojo/BlazerApex-2B:IQ4_XS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Davizig10jojo/BlazerApex-2B:IQ4_XS # Run inference directly in the terminal: llama cli -hf Davizig10jojo/BlazerApex-2B:IQ4_XS
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 Davizig10jojo/BlazerApex-2B:IQ4_XS # Run inference directly in the terminal: ./llama-cli -hf Davizig10jojo/BlazerApex-2B:IQ4_XS
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 Davizig10jojo/BlazerApex-2B:IQ4_XS # Run inference directly in the terminal: ./build/bin/llama-cli -hf Davizig10jojo/BlazerApex-2B:IQ4_XS
Use Docker
docker model run hf.co/Davizig10jojo/BlazerApex-2B:IQ4_XS
- LM Studio
- Jan
- vLLM
How to use Davizig10jojo/BlazerApex-2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Davizig10jojo/BlazerApex-2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Davizig10jojo/BlazerApex-2B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Davizig10jojo/BlazerApex-2B:IQ4_XS
- SGLang
How to use Davizig10jojo/BlazerApex-2B 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 "Davizig10jojo/BlazerApex-2B" \ --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": "Davizig10jojo/BlazerApex-2B", "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 "Davizig10jojo/BlazerApex-2B" \ --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": "Davizig10jojo/BlazerApex-2B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use Davizig10jojo/BlazerApex-2B with Ollama:
ollama run hf.co/Davizig10jojo/BlazerApex-2B:IQ4_XS
- Unsloth Desktop
- Docker Model Runner
How to use Davizig10jojo/BlazerApex-2B with Docker Model Runner:
docker model run hf.co/Davizig10jojo/BlazerApex-2B:IQ4_XS
- Lemonade
How to use Davizig10jojo/BlazerApex-2B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Davizig10jojo/BlazerApex-2B:IQ4_XS
Run and chat with the model
lemonade run user.BlazerApex-2B-IQ4_XS
List all available models
lemonade list
- Atomic Chat
Upload lora_ptbr/tokenizer_config.json with huggingface_hub
Browse files
lora_ptbr/tokenizer_config.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": null,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<s>",
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "</s>",
|
| 7 |
+
"is_local": false,
|
| 8 |
+
"legacy": true,
|
| 9 |
+
"local_files_only": false,
|
| 10 |
+
"model_max_length": 131072,
|
| 11 |
+
"pad_token": "</s>",
|
| 12 |
+
"sp_model_kwargs": {},
|
| 13 |
+
"spaces_between_special_tokens": false,
|
| 14 |
+
"tokenizer_class": "TokenizersBackend",
|
| 15 |
+
"unk_token": "<unk>",
|
| 16 |
+
"use_default_system_prompt": false
|
| 17 |
+
}
|