Text Generation
Transformers
Safetensors
GGUF
English
legal
dpdp
qwen
slm
vllm
unsloth
simpo
rslora
rag
bge
conversational
Instructions to use PRiyanshu0-1/DPDP-SSense with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PRiyanshu0-1/DPDP-SSense with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PRiyanshu0-1/DPDP-SSense")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("PRiyanshu0-1/DPDP-SSense", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use PRiyanshu0-1/DPDP-SSense 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 PRiyanshu0-1/DPDP-SSense:Q4_K_M # Run inference directly in the terminal: llama cli -hf PRiyanshu0-1/DPDP-SSense:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf PRiyanshu0-1/DPDP-SSense:Q4_K_M # Run inference directly in the terminal: llama cli -hf PRiyanshu0-1/DPDP-SSense:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf PRiyanshu0-1/DPDP-SSense:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf PRiyanshu0-1/DPDP-SSense:Q4_K_M
Use Docker
docker model run hf.co/PRiyanshu0-1/DPDP-SSense:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use PRiyanshu0-1/DPDP-SSense with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PRiyanshu0-1/DPDP-SSense" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PRiyanshu0-1/DPDP-SSense", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/PRiyanshu0-1/DPDP-SSense:Q4_K_M
- SGLang
How to use PRiyanshu0-1/DPDP-SSense 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 "PRiyanshu0-1/DPDP-SSense" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PRiyanshu0-1/DPDP-SSense", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "PRiyanshu0-1/DPDP-SSense" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PRiyanshu0-1/DPDP-SSense", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use PRiyanshu0-1/DPDP-SSense with Ollama:
ollama run hf.co/PRiyanshu0-1/DPDP-SSense:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use PRiyanshu0-1/DPDP-SSense with Docker Model Runner:
docker model run hf.co/PRiyanshu0-1/DPDP-SSense:Q4_K_M
- Lemonade
How to use PRiyanshu0-1/DPDP-SSense with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull PRiyanshu0-1/DPDP-SSense:Q4_K_M
Run and chat with the model
lemonade run user.DPDP-SSense-Q4_K_M
List all available models
lemonade list
- Atomic Chat
File size: 7,115 Bytes
1f52672 e979960 1f52672 e979960 1f52672 e979960 1f52672 e979960 1f52672 e979960 1f52672 e979960 1f52672 e979960 1f52672 e979960 1f52672 e979960 1f52672 e979960 1f52672 e979960 1f52672 e979960 1f52672 e979960 1f52672 e979960 1f52672 e979960 1f52672 e979960 1f52672 e979960 1f52672 e979960 1f52672 e979960 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | #!/usr/bin/env bash
# ==============================================================================
# 03_evaluate_models.sh β Stage 3: Master Certification Orchestrator (DGX Spark)
# ==============================================================================
# SOTA Upgrades Implemented:
# 1. Single CI/CD Entrypoint: Absorbs legacy verify.sh, evaluate.sh, and verify_edge.sh.
# 2. Native Edge Routing: Pass `--edge` to automatically target GGUF binaries via llama.cpp.
# 3. Explicit "No-Fail-Fast" Zone: `set +e` ensures the orchestrator finishes and
# generates the Master Scorecard even if individual models catastrophically fail.
# 4. Hardware Env Overrides: Forces TOKENIZERS_PARALLELISM=false for safe VRAM airlocking.
# ==============================================================================
set -eo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ML_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
REPO_ROOT="$(cd "${ML_DIR}/.." && pwd)"
# βββ DGX & PYTORCH ENVIRONMENT HARDENING ββββββββββββββββββββββββββββββββββββββ
export PYTHONUNBUFFERED=1
export TOKENIZERS_PARALLELISM=false
export CUDA_DEVICE_ORDER="PCI_BUS_ID"
# βββ DEFAULT CONFIGURATION ββββββββββββββββββββββββββββββββββββββββββββββββββββ
BACKEND="vllm"
AUDIT_MODEL="../models/audit-model-final"
CHATBOT_MODEL="../models/chatbot-model-final"
AUDIT_LORA="audit"
CHATBOT_LORA="chatbot"
VLLM_URL="http://localhost:8000/v1/completions"
EDGE_MODE=false
EXTRA_ARGS=()
# βββ ARGUMENT PARSING βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
while [[ $# -gt 0 ]]; do
case $1 in
--backend) BACKEND="$2"; shift 2 ;;
--audit-model) AUDIT_MODEL="$2"; shift 2 ;;
--chatbot-model) CHATBOT_MODEL="$2"; shift 2 ;;
--audit-lora) AUDIT_LORA="$2"; shift 2 ;;
--chatbot-lora) CHATBOT_LORA="$2"; shift 2 ;;
--vllm-url) VLLM_URL="$2"; shift 2 ;;
--skip-run) EXTRA_ARGS+=("--skip-run"); shift ;;
--edge) EDGE_MODE=true; shift ;;
-h|--help)
echo "Usage: bash ml/scripts/03_evaluate_models.sh [options]"
echo "Options:"
echo " --backend <vllm|unsloth|llamacpp> Backend engine (default: vllm)"
echo " --edge Auto-configures llama.cpp to test quantized GGUF Edge models"
echo " --audit-model <path> Path to Auditor model"
echo " --chatbot-model <path> Path to Chatbot model"
echo " --skip-run Skip inference, aggregate existing JSON reports only"
exit 0
;;
*)
echo "Unknown argument: $1"
exit 1
;;
esac
done
# βββ EDGE/GGUF AUTO-CONFIGURATION βββββββββββββββββββββββββββββββββββββββββββββ
if [[ "$EDGE_MODE" == true ]]; then
BACKEND="llamacpp"
AUDIT_MODEL="../models/audit-model-final-gguf"
CHATBOT_MODEL="../models/chatbot-model-final-gguf"
EXTRA_ARGS+=("--base-model-label" "GGUF-Q4_K_M-Edge")
fi
# βββ DGX LOGGING SETUP ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
TIMESTAMP=$(date +"%Y%m%d_%H%M%S")
LOG_DIR="${REPO_ROOT}/logs"
mkdir -p "${LOG_DIR}"
MASTER_LOG="${LOG_DIR}/03_evaluate_models_${TIMESTAMP}.log"
# Setup dual-logging to both terminal and log file safely
exec > >(tee -i "${MASTER_LOG}")
exec 2>&1
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
if [[ "$EDGE_MODE" == true ]]; then
echo "π§ INITIATING STAGE 3: GGUF EDGE-DEPLOYMENT CERTIFICATION HARNESS"
else
echo "π INITIATING STAGE 3: FUNCTIONAL & ADVERSARIAL MODEL CERTIFICATION"
fi
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β’ Inference Backend: ${BACKEND}"
echo " β’ Auditor Model: ${AUDIT_MODEL}"
echo " β’ Chatbot Model: ${CHATBOT_MODEL}"
echo " β’ Master Log: ${MASTER_LOG}"
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
# βββ EXECUTE PYTHON ORCHESTRATOR ββββββββββββββββββββββββββββββββββββββββββββββ
cd "${ML_DIR}/evals"
if [ ! -f "verify.py" ]; then
echo "β ERROR: Master orchestrator 'verify.py' not found in $(pwd)"
exit 1
fi
# ==============================================================================
# SOTA FIX: THE NO-FAIL-FAST ZONE
# By explicitly suspending 'set -e' (+e), we guarantee Bash will not terminate
# the pipeline if the SLMs mathematically fail the security bounds. This ensures
# the Master Markdown Scorecard is ALWAYS compiled and presented to the developer.
# ==============================================================================
set +e
python3 verify.py \
--backend "${BACKEND}" \
--audit-model-path "${AUDIT_MODEL}" \
--chatbot-model-path "${CHATBOT_MODEL}" \
--audit-lora-name "${AUDIT_LORA}" \
--chatbot-lora-name "${CHATBOT_LORA}" \
--vllm-url "${VLLM_URL}" \
"${EXTRA_ARGS[@]}"
EXIT_CODE=$?
# Re-enable fail-fast safety netting for the remainder of the wrapper
set -e
echo -e "\nββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
if [ ${EXIT_CODE} -eq 0 ]; then
echo "β
STAGE 3 COMPLETE: Models certified across all 18 functional thresholds!"
else
echo "β STAGE 3 COMPLETE: Certification checks encountered threshold infractions."
echo " (Review the Master Scorecard. Threshold failures indicate model capability limits,"
echo " not pipeline bugs. Adjust SimPO training data to improve.)"
fi
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo "π Execution logs saved to: ${MASTER_LOG}"
exit ${EXIT_CODE} |