Hf cli

From clowlove/Hermes-House · View interactive version

Hf cli is an AI agent skill from the GitHub repository clowlove/Hermes-House. - 用户提到 Hugging Face、HF、huggingface

How to use this skill

Skill file

HF CLI Skill for Hermès Agent

自动同步到 HF,版本 2.0

Trigger Conditions

Commands

基础认证

hf auth login --token [TOKEN]
hf whoami  # 验证登录状态

模型操作

hf models ls                          # 列出我的模型
hf models search "gpt2"               # 搜索模型
hf models download username/modelname # 下载模型
hf upload username/modelname ./model/ # 上传模型

数据集操作

hf datasets ls                        # 列出我的数据集
hf datasets search "wikipedia"        # 搜索数据集
hf datasets download username/dataset # 下载数据集
hf upload username/dataset ./data/    # 上传数据集

Space 操作

hf spaces ls                          # 列出我的 Spaces
hf spaces create username/space --type space --public --space-sdk gradio  # 创建 Space
hf upload username/space . --repo-type space  # 上传 Space

Collection 操作

hf collections ls                      # 列出我的 Collections
hf collections create username/collection  # 创建 Collection
hf collections add-item username/collection username/resource type  # 添加资源

推理 API (免费)

from huggingface_hub import InferenceClient

client = InferenceClient(
    model="meta-llama/Llama-3.2-1B-Instruct",
    token="hf_xxx"
)

# 文本生成
result = client.text_generation(
    prompt="Hello, how are you?",
    max_new_tokens=100,
    temperature=0.7
)

Hermès 资源列表 (cntalk)

| 资源名 | 类型 | URL |

|--------|------|-----|

| hello-hermes | Space | hf.co/spaces/cntalk/hello-hermes |

| hermes-toolkit | Space | hf.co/spaces/cntalk/hermes-toolkit |

| hermes-examples | Dataset | hf.co/datasets/cntalk/hermes-examples |

| agent-prompts | Dataset | hf.co/datasets/cntalk/agent-prompts |

| hermes-skills | Dataset | hf.co/datasets/cntalk/hermes-skills |

| hermes-integration | Dataset | hf.co/datasets/cntalk/hermes-integration |

Collection: hermes-agent-resources

同步脚本

python ~/.hermes/scripts/hf_sync.py  # 同步 Hermès 资源到 HF

注意事项

免费 Inference API 模型 (常用)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.