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.1.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.1-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.1.tar.gz.

File metadata

  • Download URL: search_llm_actions-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2a9c5c070ae55f8578e28a0560a0e304a6b555b5d7cb8e2eae54e52051e04d44
MD5 bc4e88471882e95da9598206228be126
BLAKE2b-256 5314a98da0cc8f33d4517f56424650ba7be58922a5723e583f560fa2019ac2f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for search_llm_actions-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a151b1364484460dda911ff18c844366bbfd7c214442e51b61bfbb55174ff25d
MD5 791a307b37147740eb72972e6588c650
BLAKE2b-256 0f01cb4c5609d33e46292b6d8aac15575c1a7628fb1f5ec6c97237dde80a3a01

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