Skip to main content

('search_llm_actions provides a simple template to collect action trajectories from local (e.g. vllm servers) or remote (e.g. togetherai api) llms by search.',)

Project description

search_llm_actions

search_llm_actions provides a simple template to collect action trajectories from local (vllm servers on multi-gpus are supported) or remote (togetherai api is supported) llms by search.

Installation

pip install search_llm_actions

Customization

  • You could find an minimal example in search_llm_actions/main.py.
  • You need to override init_root_node, take_parallel_actions, simulate & detect_end functions in search_llm_actions/search.py to adapt to your own task.
  • You need to override deploy_vllm_multi.sh & test_vllm_multi.sh in search_llm_actions/scripts to adapt to your own llm server.
  • You need to implement a new subclass of Caller in search_llm_actions/llm_caller.py to adapt to your own llm server.

enjoy:) 🤯

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

search_llm_actions-0.0.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

search_llm_actions-0.0.0-py2.py3-none-any.whl (9.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file search_llm_actions-0.0.0.tar.gz.

File metadata

  • Download URL: search_llm_actions-0.0.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.14

File hashes

Hashes for search_llm_actions-0.0.0.tar.gz
Algorithm Hash digest
SHA256 f751896cbe71bf854e79e6a3f4b206a0133aae5455a2c6465c0e07a8dba6cafb
MD5 37016ba01269d8b8d11895d8e28677e4
BLAKE2b-256 1149526838a71811e095013ac93dd80765e2f9ad5015275a882d6d8e8c94108d

See more details on using hashes here.

File details

Details for the file search_llm_actions-0.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for search_llm_actions-0.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 856e9da2abbe3c44fd7ee37e2838c627b038dd7e46498a845b27dc6aecf1aabb
MD5 5c859edbe7e81cd03d525a2026259a85
BLAKE2b-256 f4a7efd7961517caead1421d1157bb8bd1b500a1b63821d9f41efb1c756fcb29

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page