Run this model with HF Jobs
Run Cialtion/SimpleTool on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Cialtion/SimpleTool. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Cialtion/SimpleTool on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Cialtion/SimpleTool. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Cialtion/SimpleTool. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Cialtion/SimpleTool with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Cialtion/SimpleTool with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Cialtion/SimpleTool")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Cialtion/SimpleTool", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Cialtion/SimpleTool with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Cialtion/SimpleTool" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Cialtion/SimpleTool", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Cialtion/SimpleTool
- SGLang
How to use Cialtion/SimpleTool 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 "Cialtion/SimpleTool" \ --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": "Cialtion/SimpleTool", "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 "Cialtion/SimpleTool" \ --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": "Cialtion/SimpleTool", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Cialtion/SimpleTool with Docker Model Runner:
docker model run hf.co/Cialtion/SimpleTool
Delete llama-cpp-quantize.sh with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151#!/bin/bash
# ============================================================# llama.cpp GGUF 批量量化脚本# 用途:将F16 GGUF模型量化为Ollama主流格式# ============================================================
# 配置区# 配置区LLAMA_CPP_DIR="/inspire/hdd/global_user/shixiaoxin-253107030017/sxx/llama.cpp"QUANTIZE_BIN="${LLAMA_CPP_DIR}/build/bin/llama-quantize"INPUT_DIR="./gguf_models"OUTPUT_DIR="./gguf_quantized"
export LD_LIBRARY_PATH="${LLAMA_CPP_DIR}/build/bin:${LD_LIBRARY_PATH}"
# Ollama主流量化格式(按推荐程度排序)# Q4_K_M: 最流行,平衡质量与大小(推荐)# Q5_K_M: 质量更好,文件稍大# Q8_0: 高质量,文件较大# Q4_0: 基础4bit,兼容性好# Q3_K_M: 更小文件,质量损失较大QUANT_TYPES=("Q4_K_M" "Q5_K_M" "Q8_0")
# ============================================================# 检查环境# ============================================================echo "🔧 检查环境..."
# 检查量化工具是否存在if [ ! -f "$QUANTIZE_BIN" ]; then echo "❌ 错误:找不到量化工具 $QUANTIZE_BIN" echo "请先编译llama.cpp:" echo " cd $LLAMA_CPP_DIR" echo " mkdir -p build && cd build" echo " cmake .. -DGGML_CUDA=ON" echo " make -j$(nproc)" exit 1fi
# 检查输入目录if [ ! -d "$INPUT_DIR" ]; then echo "❌ 错误:输入目录不存在 $INPUT_DIR" echo "请先运行convert_hf_to_gguf.py转换模型" exit 1fi
# 创建输出目录mkdir -p "$OUTPUT_DIR"
echo "✅ 环境检查通过"echo ""
# ============================================================# 获取待量化模型列表# ============================================================echo "📂 扫描待量化模型..."
MODELS=($(find "$INPUT_DIR" -maxdepth 1 -name "*.gguf" -type f))
if [ ${#MODELS[@]} -eq 0 ]; then echo "❌ 未找到任何.gguf文件在 $INPUT_DIR" exit 1fi
echo "✅ 找到 ${#MODELS[@]} 个模型待量化"for m in "${MODELS[@]}"; do echo " - $(basename "$m")"doneecho ""
# ============================================================# 批量量化# ============================================================echo "🚀 开始批量量化..."echo "量化格式: ${QUANT_TYPES[*]}"echo ""
TOTAL=$((${#MODELS[@]} * ${#QUANT_TYPES[@]}))CURRENT=0SUCCESS=0FAILED=0
for MODEL_PATH in "${MODELS[@]}"; do MODEL_NAME=$(basename "$MODEL_PATH" .gguf) for QTYPE in "${QUANT_TYPES[@]}"; do CURRENT=$((CURRENT + 1)) OUTPUT_FILE="${OUTPUT_DIR}/${MODEL_NAME}-${QTYPE}.gguf" echo "==============================================" echo "[$CURRENT/$TOTAL] 量化: ${MODEL_NAME} -> ${QTYPE}" echo "输入: $MODEL_PATH" echo "输出: $OUTPUT_FILE" echo "==============================================" # 跳过已存在的文件 if [ -f "$OUTPUT_FILE" ]; then echo "⏭️ 文件已存在,跳过" SUCCESS=$((SUCCESS + 1)) continue fi # 执行量化 "$QUANTIZE_BIN" "$MODEL_PATH" "$OUTPUT_FILE" "$QTYPE" if [ $? -eq 0 ]; then # 显示文件大小 SIZE=$(du -h "$OUTPUT_FILE" | cut -f1) echo "✅ 成功!文件大小: $SIZE" SUCCESS=$((SUCCESS + 1)) else echo "❌ 量化失败" FAILED=$((FAILED + 1)) fi echo "" donedone
# ============================================================# 汇总报告# ============================================================echo ""echo "=============================================="echo "📊 批量量化完成"echo "=============================================="echo "✅ 成功: $SUCCESS"echo "❌ 失败: $FAILED"echo ""echo "输出目录: $OUTPUT_DIR"echo ""
# 列出所有生成的文件echo "生成的模型文件:"ls -lh "$OUTPUT_DIR"/*.gguf 2>/dev/null | awk '{print " " $9 " (" $5 ")"}'
echo ""echo "=============================================="echo "📦 Ollama发布指南"echo "=============================================="echo "1. 创建Modelfile:"echo ' FROM ./your_model-Q4_K_M.gguf'echo ' TEMPLATE """{{ .Prompt }}"""'echo ' PARAMETER temperature 0.7'echo ""echo "2. 创建本地模型:"echo " ollama create your-model-name -f Modelfile"echo ""echo "3. 推送到Ollama Hub:"echo " ollama push username/model-name"echo "=============================================="llama-cpp-quantize.shDeleted-151