gair-prox/RedPajama-pro
Viewer • Updated • 10.2M • 57 • 4
How to use QuantFactory/web-doc-refining-lm-GGUF with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="QuantFactory/web-doc-refining-lm-GGUF") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("QuantFactory/web-doc-refining-lm-GGUF", device_map="auto")How to use QuantFactory/web-doc-refining-lm-GGUF with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf QuantFactory/web-doc-refining-lm-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf QuantFactory/web-doc-refining-lm-GGUF:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf QuantFactory/web-doc-refining-lm-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf QuantFactory/web-doc-refining-lm-GGUF:Q4_K_M
# 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 QuantFactory/web-doc-refining-lm-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantFactory/web-doc-refining-lm-GGUF:Q4_K_M
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 QuantFactory/web-doc-refining-lm-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantFactory/web-doc-refining-lm-GGUF:Q4_K_M
docker model run hf.co/QuantFactory/web-doc-refining-lm-GGUF:Q4_K_M
How to use QuantFactory/web-doc-refining-lm-GGUF with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "QuantFactory/web-doc-refining-lm-GGUF"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "QuantFactory/web-doc-refining-lm-GGUF",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/QuantFactory/web-doc-refining-lm-GGUF:Q4_K_M
How to use QuantFactory/web-doc-refining-lm-GGUF with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "QuantFactory/web-doc-refining-lm-GGUF" \
--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": "QuantFactory/web-doc-refining-lm-GGUF",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "QuantFactory/web-doc-refining-lm-GGUF" \
--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": "QuantFactory/web-doc-refining-lm-GGUF",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use QuantFactory/web-doc-refining-lm-GGUF with Ollama:
ollama run hf.co/QuantFactory/web-doc-refining-lm-GGUF:Q4_K_M
How to use QuantFactory/web-doc-refining-lm-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/web-doc-refining-lm-GGUF:Q4_K_M
How to use QuantFactory/web-doc-refining-lm-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/web-doc-refining-lm-GGUF:Q4_K_M
lemonade run user.web-doc-refining-lm-GGUF-Q4_K_M
lemonade list
This is quantized version of gair-prox/web-doc-refining-lm created using llama.cpp
Web-doc-refining-lm is an adapted 0.3B-ProX model, fine-tuned for document level refining via program generation.
@article{zhou2024programming,
title={Programming Every Example: Lifting Pre-training Data Quality like Experts at Scale},
author={Zhou, Fan and Wang, Zengzhi and Liu, Qian and Li, Junlong and Liu, Pengfei},
journal={arXiv preprint arXiv:2409.17115},
year={2024}
}
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
Base model
gair-prox/RedPJ-ProX-0.3B