totally-not-an-llm/EverythingLM-data-V2-sharegpt
Viewer • Updated • 1k • 18 • 4
How to use afrideva/Marx-3B-V2-GGUF with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="afrideva/Marx-3B-V2-GGUF") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("afrideva/Marx-3B-V2-GGUF", device_map="auto")How to use afrideva/Marx-3B-V2-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="afrideva/Marx-3B-V2-GGUF", filename="marx-3b-v2.fp16.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
How to use afrideva/Marx-3B-V2-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 afrideva/Marx-3B-V2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf afrideva/Marx-3B-V2-GGUF:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf afrideva/Marx-3B-V2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf afrideva/Marx-3B-V2-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 afrideva/Marx-3B-V2-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf afrideva/Marx-3B-V2-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 afrideva/Marx-3B-V2-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf afrideva/Marx-3B-V2-GGUF:Q4_K_M
docker model run hf.co/afrideva/Marx-3B-V2-GGUF:Q4_K_M
How to use afrideva/Marx-3B-V2-GGUF with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "afrideva/Marx-3B-V2-GGUF"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "afrideva/Marx-3B-V2-GGUF",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/afrideva/Marx-3B-V2-GGUF:Q4_K_M
How to use afrideva/Marx-3B-V2-GGUF with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "afrideva/Marx-3B-V2-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": "afrideva/Marx-3B-V2-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 "afrideva/Marx-3B-V2-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": "afrideva/Marx-3B-V2-GGUF",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use afrideva/Marx-3B-V2-GGUF with Ollama:
ollama run hf.co/afrideva/Marx-3B-V2-GGUF:Q4_K_M
How to use afrideva/Marx-3B-V2-GGUF with Unsloth Studio:
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 afrideva/Marx-3B-V2-GGUF to start chatting
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 afrideva/Marx-3B-V2-GGUF to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for afrideva/Marx-3B-V2-GGUF to start chatting
How to use afrideva/Marx-3B-V2-GGUF with Docker Model Runner:
docker model run hf.co/afrideva/Marx-3B-V2-GGUF:Q4_K_M
How to use afrideva/Marx-3B-V2-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull afrideva/Marx-3B-V2-GGUF:Q4_K_M
lemonade run user.Marx-3B-V2-GGUF-Q4_K_M
lemonade list
Quantized GGUF model files for Marx-3B-V2 from acrastt
| Name | Quant method | Size |
|---|---|---|
| marx-3b-v2.fp16.gguf | fp16 | 6.85 GB |
| marx-3b-v2.q2_k.gguf | q2_k | 2.15 GB |
| marx-3b-v2.q3_k_m.gguf | q3_k_m | 2.27 GB |
| marx-3b-v2.q4_k_m.gguf | q4_k_m | 2.58 GB |
| marx-3b-v2.q5_k_m.gguf | q5_k_m | 2.76 GB |
| marx-3b-v2.q6_k.gguf | q6_k | 3.64 GB |
| marx-3b-v2.q8_0.gguf | q8_0 | 3.64 GB |
This is OpenLLaMA 3B V2 finetuned on EverythingLM Data V2(ShareGPT format) for 2 epochs.
Prompt template:
### HUMAN:
{prompt}
### RESPONSE:
<leave a newline for the model to answer>
q4_1 GGML quant available here.
q4_1 GGUF quant available here.
Base model
acrastt/Marx-3B-V2