跳到正文
cccskills
免费在 GitHub 公开

clip-as-service

Guides CLIP-as-service client, server, and CLIP search workflows for text/image embeddings, cross-modal ranking, and retrieval services.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(28)

  • SKILL.md4.1 KB
  • references/install-and-package-map.md3.2 KB
  • references/repo-provenance.md2.5 KB
  • references/repo-routing-metadata.json505 B
  • references/troubleshooting.md4.4 KB
  • scripts/check_install.py3.9 KB
  • sub-skills/client-api/references/api-reference.md4.2 KB
  • sub-skills/client-api/references/troubleshooting.md4.3 KB
  • sub-skills/client-api/references/workflows.md3.9 KB
  • sub-skills/client-api/scripts/check_client_api.py3.1 KB
  • sub-skills/client-api/SKILL.md4.1 KB
  • sub-skills/search-retrieval/references/configuration.md2.3 KB
  • sub-skills/search-retrieval/references/troubleshooting.md3.4 KB
  • sub-skills/search-retrieval/references/workflows.md3.5 KB
  • sub-skills/search-retrieval/scripts/check_search_config.py5.7 KB
  • sub-skills/search-retrieval/scripts/search-flow.yml424 B
  • sub-skills/search-retrieval/SKILL.md3.5 KB
  • sub-skills/server-runtime/references/api-reference.md4.1 KB
  • sub-skills/server-runtime/references/configuration.md5.0 KB
  • sub-skills/server-runtime/references/model-overview.md4.2 KB
  • sub-skills/server-runtime/references/troubleshooting.md4.7 KB
  • sub-skills/server-runtime/scripts/benchmark_client.py3.3 KB
  • sub-skills/server-runtime/scripts/check_server_config.py4.2 KB
  • sub-skills/server-runtime/scripts/onnx_model_tools.py2.7 KB
  • sub-skills/server-runtime/scripts/onnx-flow.yml228 B
  • sub-skills/server-runtime/scripts/tensorrt-flow.yml232 B
  • sub-skills/server-runtime/scripts/torch-flow.yml229 B
  • sub-skills/server-runtime/SKILL.md3.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

CLIP-as-service Repo Skill

Use this skill when a task involves the CLIP-as-service package family: clip-client, clip-server, or the combined clip-as-service distribution. It covers running a CLIP embedding service, using the Python client against that service, ranking image/text matches, and building CLIP + AnnLite retrieval flows.

Quick routing

User goalRead
Connect to a running server, authenticate, call Client.profile, encode, rank, index, or search, or debug a client errorclient-api
Install/run clip_server, write a Flow YAML, choose PyTorch/ONNX/TensorRT, tune replicas/protocol/monitoring/TLS/Docker, or debug backend/model startupserver-runtime
Build semantic or cross-modal search with CLIP embeddings plus AnnLite, validate n_dim, workspace, sharding/polling, and index/search behaviorsearch-retrieval
Diagnose package install/import, optional dependency, data/config, backend, model-download, or connectivity failures across workflowsreferences/troubleshooting.md
Check whether this generated skill matches a checkout or package versionreferences/repo-provenance.md
Check package names, extras, and safe import probesreferences/install-and-package-map.md and scripts/check_install.py

Package layout and install basics

CLIP-as-service is split into independently installable packages:

pip install clip-client          # client-only machine
pip install clip-server          # PyTorch-backed server package
pip install "clip-server[onnx]"  # optional ONNX Runtime support
pip install "clip-server[tensorrt]"  # optional NVIDIA TensorRT support
pip install "clip-server[search]"    # optional AnnLite search indexer support

Install clip-client where requests are sent from. Install clip-server where the long-running embedding service runs. They do not need to be installed on the same host unless the user is developing or testing both locally.

Minimal import check:

python - <<'PY'
import clip_client, clip_server
print(clip_client.__version__, clip_server.__version__)
PY

To avoid background version-check network calls during automated probes, set NO_VERSION_CHECK=1 before importing these packages.

Core operating model

  • clip_server starts a Jina Flow that receives text/image Document objects and returns CLIP embeddings or ranking scores.
  • clip_client.Client sends requests to a server URI such as grpc://host:port, http://host:port, or TLS variants such as grpcs://host:port.
  • Encoding accepts text strings, image URIs, data URIs, local image paths, or DocArray Document objects. Ranking expects each root Document to contain cross-modal candidates in .matches or another configured source.
  • Search requires a Flow with a CLIP encoder plus a vector indexer such as AnnLite. Plain encoder-only servers do not own an index.

Backend boundary

Base PyTorch server usage can run on CPU or CUDA. ONNX, TensorRT, multilingual M-CLIP, Chinese CLIP, search indexing, and flash attention are optional surfaces with separate dependency requirements. Do not claim an optional backend has been verified just because base imports work. Use the nearest sub-skill troubleshooting reference when a backend import or runtime startup fails.

Safety and self-containment

This skill is self-contained for future agents. Use bundled references and scripts here instead of opening original repository docs, tests, or scripts. The bundled scripts are safe by default: they validate imports, signatures, YAML, or CLI arguments without starting model downloads, contacting servers, or mutating external state unless the user explicitly supplies runtime options.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3402026年9月3日 更新

3ddfa

免费

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3402026年9月3日 更新

3ddfa-v2

免费

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3402026年9月3日 更新

ab3dmot

免费

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3402026年9月3日 更新

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3402026年9月3日 更新

acme

免费

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3402026年9月3日 更新

查看 VectorSpaceLab 的全部技能

报告此技能的问题