|
Download lingbot_test/wan_va/utils/Simple_Remote_Infer/README.md from LllCCcc/Human-WAM: direct link, hf CLI and curl.
- Browser
- Download file 522 Bytes
-
https://huggingface.co/datasets/LllCCcc/Human-WAM/resolve/main/lingbot_test/wan_va/utils/Simple_Remote_Infer/README.md
- Command line
-
hf download hf://datasets/LllCCcc/Human-WAM/lingbot_test/wan_va/utils/Simple_Remote_Infer/README.md
-
curl -L -o README.md https://huggingface.co/datasets/LllCCcc/Human-WAM/resolve/main/lingbot_test/wan_va/utils/Simple_Remote_Infer/README.md
522 Bytes
通用的server-client
/Simple_Remote_Infer/deploy/qwenpi_policy.py
- QwenPiServer: 一个用于示范的模型,拥有init和infer方法
将加载好的模型用WebsocketPolicyServer包裹,并指定端口即可
model_server = WebsocketPolicyServer(model, port=8002)
model_server.serve_forever() # 开启监听
./websocket_client_policy.py
在__main__()中展示了如何创造一个假模型向真模型发送环境信息,只需要用WebsocketClientPolicy代替原有的模型即可