Skip to content

Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks including CrewAI, Agno, OpenAI Agents SDK, Langchain, Autogen, AG2, and CamelAI

langchain callback handler

Braelyn Boynton5755a5d24b2f
diff --git a/agentops/langchain_callback_handler.py b/agentops/langchain_callback_handler.py
index cf132bfd..c6c6b51b 100644
--- a/agentops/langchain_callback_handler.py
+++ b/agentops/langchain_callback_handler.py
@@ -13,9 +13,9 @@ from agentops.helpers import get_ISO_time
class LangchainCallbackHandler(BaseCallbackHandler):
- def __init__(self):
- self.ao_client = AOClient()
- self.ao_client.start_session()
+ def __init__(self, api_key: str, tags: [str] = None):
+ self.ao_client = AOClient(api_key=api_key)
+ self.ao_client.start_session(tags)
# keypair <run_id: str, Event>
self.events = {}
diff --git a/examples/langchain_examples.ipynb b/examples/langchain_examples.ipynb
new file mode 100644
index 00000000..c62c1b76
--- /dev/null
+++ b/examples/langchain_examples.ipynb
@@ -0,0 +1,644 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "id": "initial_id",
+ "metadata": {
+ "collapsed": true,
+ "ExecuteTime": {
+ "end_time": "2023-12-15T17:20:48.236786Z",
+ "start_time": "2023-12-15T17:20:46.393933Z"
+ }
+ },
+ "outputs": [
+ {
+ "name": "stderr",
+ "output_type": "stream",
+ "text": [
+ "/Library/Python/3.9/site-packages/urllib3/__init__.py:34: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020\n",
+ " warnings.warn(\n"
+ ]
+ }
+ ],
+ "source": [
+ "from agentops.langchain_callback_handler import LangchainCallbackHandler\n",
+ "import os\n",
+ "# from langchain.llms import OpenAI\n",
+ "from langchain.chat_models import ChatOpenAI\n",
+ "from langchain.agents import initialize_agent, AgentType\n",
+ "from dotenv import load_dotenv"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "outputs": [],
+ "source": [
+ "load_dotenv()\n",
+ "OPENAI_API_KEY = os.getenv('OPENAI_API_KEY')\n",
+ "AGENTOPS_API_KEY = os.getenv('AGENTOPS_API_KEY')"
+ ],
+ "metadata": {
+ "collapsed": false,
+ "ExecuteTime": {
+ "end_time": "2023-12-15T17:20:48.241802Z",
+ "start_time": "2023-12-15T17:20:48.237524Z"
+ }
+ },
+ "id": "1490411415d7317c"
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "created callback handler\n"
+ ]
+ }
+ ],
+ "source": [
+ "# handler = LangchainCallbackHandler(tags=['Langchain Example'])\n",
+ "handler = LangchainCallbackHandler(api_key=AGENTOPS_API_KEY)\n",
+ "llm = ChatOpenAI(openai_api_key=OPENAI_API_KEY, callbacks=[handler])\n",
+ "# llm = ChatOpenAI(openai_api_key=OPENAI_API_KEY)"
+ ],
+ "metadata": {
+ "collapsed": false,
+ "ExecuteTime": {
+ "end_time": "2023-12-15T17:20:49.466217Z",
+ "start_time": "2023-12-15T17:20:48.240866Z"
+ }
+ },
+ "id": "432921383f39c9d5"
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "outputs": [],
+ "source": [
+ "agent = initialize_agent([],\n",
+ " llm,\n",
+ " agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,\n",
+ " verbose=True,\n",
+ " handle_parsing_errors=True)"
+ ],
+ "metadata": {
+ "collapsed": false,
+ "ExecuteTime": {
+ "end_time": "2023-12-15T17:20:49.470481Z",
+ "start_time": "2023-12-15T17:20:49.468025Z"
+ }
+ },
+ "id": "d538b20aa954ee80"
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "\n",
+ "\n",
+ "\u001B[1m> Entering new AgentExecutor chain...\u001B[0m\n",
+ "on start\n",
+ "on end\n",
+ "\u001B[32;1m\u001B[1;3mCould not parse LLM output: I'm sorry, I don't have access to real-time data about movie showtimes. However, you can check online movie ticketing platforms or cinema websites to find out what movies are currently playing.\u001B[0m\n",
+ "Observation: Invalid or incomplete response\n",
+ "Thought:on start\n",
+ "on end\n",
+ "\u001B[32;1m\u001B[1;3mCould not parse LLM output: I need to find a tool that can provide real-time information about movie showtimes.\u001B[0m\n",
+ "Observation: Invalid or incomplete response\n",
+ "Thought:on start\n",
+ "on end\n",
+ "\u001B[32;1m\u001B[1;3mCould not parse LLM output: I need to find a tool that can provide real-time information about movie showtimes.\u001B[0m\n",
+ "Observation: Invalid or incomplete response\n",
+ "Thought:on start\n",
+ "on end\n",
+ "\u001B[32;1m\u001B[1;3mCould not parse LLM output: I need to find a tool that can provide real-time information about movie showtimes.\u001B[0m\n",
+ "Observation: Invalid or incomplete response\n",
+ "Thought:on start\n",
+ "on end\n",
+ "\u001B[32;1m\u001B[1;3mCould not parse LLM output: I need to find a tool that can provide real-time information about movie showtimes.\u001B[0m\n",
+ "Observation: Invalid or incomplete response\n",
+ "Thought:on start\n",
+ "on end\n",
+ "\u001B[32;1m\u001B[1;3mCould not parse LLM output: I need to find a tool that can provide real-time information about movie showtimes.\u001B[0m\n",
+ "Observation: Invalid or incomplete response\n",
+ "Thought:on start\n",
+ "on end\n",
+ "\u001B[32;1m\u001B[1;3mI need to find a tool that can provide real-time information about movie showtimes.\n",
+ "Action:\n",
+ "```\n",
+ "{\n",
+ " \"action\": \"movie_showtimes\",\n",
+ " \"action_input\": \"\"\n",
+ "}\n",
+ "```\u001B[0m\n",
+ "Observation: movie_showtimes is not a valid tool, try one of [].\n",
+ "Thought:on start\n",
+ "on end\n",
+ "\u001B[32;1m\u001B[1;3mI need to find a different tool that can provide real-time information about movie showtimes.\n",
+ "Action:\n",
+ "```\n",
+ "{\n",
+ " \"action\": \"movie_showtimes\",\n",
+ " \"action_input\": \"\"\n",
+ "}\n",
+ "```\n",
+ "\u001B[0m\n",
+ "Observation: movie_showtimes is not a valid tool, try one of [].\n",
+ "Thought:on start\n",
+ "on end\n",
+ "\u001B[32;1m\u001B[1;3mI need to find a different tool that can provide real-time information about movie showtimes.\n",
+ "Action:\n",
+ "```\n",
+ "{\n",
+ " \"action\": \"movie_showtimes_api\",\n",
+ " \"action_input\": \"\"\n",
+ "}\n",
+ "```\n",
+ "\u001B[0m\n",
+ "Observation: movie_showtimes_api is not a valid tool, try one of [].\n",
+ "Thought:on start\n",
+ "on end\n",
+ "\u001B[32;1m\u001B[1;3mI need to find a different tool that can provide real-time information about movie showtimes.\n",
+ "Action:\n",
+ "```\n",
+ "{\n",
+ " \"action\": \"movie_showtimes_api\",\n",
+ " \"action_input\": \"\"\n",
+ "}\n",
+ "```\n",
+ "\n",
+ "\u001B[0m\n",
+ "Observation: movie_showtimes_api is not a valid tool, try one of [].\n",
+ "Thought:on start\n",
+ "on end\n",
+ "\u001B[32;1m\u001B[1;3mI need to find a different tool that can provide real-time information about movie showtimes.\n",
+ "Action:\n",
+ "```\n",
+ "{\n",
+ " \"action\": \"movie_showtimes_online\",\n",
+ " \"action_input\": \"\"\n",
+ "}\n",
+ "```\u001B[0m\n",
+ "Observation: movie_showtimes_online is not a valid tool, try one of [].\n",
+ "Thought:on start\n",
+ "on end\n",
+ "\u001B[32;1m\u001B[1;3mI need to find a different tool that can provide real-time information about movie showtimes.\n",
+ "Action:\n",
+ "```\n",
+ "{\n",
+ " \"action\": \"movie_showtimes_online\",\n",
+ " \"action_input\": \"\"\n",
+ "}\n",
+ "```\u001B[0m\n",
+ "Observation: movie_showtimes_online is not a valid tool, try one of [].\n",
+ "Thought:on start\n",
+ "on end\n",
+ "\u001B[32;1m\u001B[1;3mI need to find a different tool that can provide real-time information about movie showtimes.\n",
+ "Action:\n",
+ "```\n",
+ "{\n",
+ " \"action\": \"movie_showtimes_website\",\n",
+ " \"action_input\": \"\"\n",
+ "}\n",
+ "```\u001B[0m\n",
+ "Observation: movie_showtimes_website is not a valid tool, try one of [].\n",
+ "Thought:on start\n",
+ "on end\n",
+ "\u001B[32;1m\u001B[1;3mCould not parse LLM output: I apologize, but I don't have access to real-time data about movie showtimes. However, you can check online movie ticketing platforms or cinema websites to find out what movies are currently playing.\u001B[0m\n",
+ "Observation: Invalid or incomplete response\n",
+ "Thought:on start\n",
+ "on end\n",
+ "\u001B[32;1m\u001B[1;3mI apologize, but I don't have access to real-time data about movie showtimes. However, you can check online movie ticketing platforms or cinema websites to find out what movies are currently playing.\n",
+ "Final Answer: You can check online movie ticketing platforms or cinema websites to find out what movies are currently playing.\u001B[0m\n",
+ "\n",
+ "\u001B[1m> Finished chain.\u001B[0m\n"
+ ]
+ },
+ {
+ "data": {
+ "text/plain": "'You can check online movie ticketing platforms or cinema websites to find out what movies are currently playing.'"
+ },
+ "execution_count": 5,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "agent.run(\"What movies are playing?\")"
+ ],
+ "metadata": {
+ "collapsed": false,
+ "ExecuteTime": {
+ "end_time": "2023-12-15T17:21:14.951663Z",
+ "start_time": "2023-12-15T17:20:49.473183Z"
+ }
+ },
+ "id": "6dfb127553751384"
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "\n",
+ "\n",
+ "\u001B[1m> Entering new AgentExecutor chain...\u001B[0m\n",
+ "\u001B[32;1m\u001B[1;3mCould not parse LLM output: I can use the `find_movie` tool to find the available movies.\u001B[0m\n",
+ "Observation: Invalid or incomplete response\n",
+ "Thought:\u001B[32;1m\u001B[1;3mCould not parse LLM output: I need to use the `find_movie` tool to find the available movies.\u001B[0m\n",
+ "Observation: Invalid or incomplete response\n",
+ "Thought:\u001B[32;1m\u001B[1;3mI can use the `find_movie` tool to find the available movies.\n",
+ "Action:\n",
+ "```\n",
+ "{\n",
+ " \"action\": \"find_movie\",\n",
+ " \"action_input\": \"\"\n",
+ "}\n",
+ "```\u001B[0m\n",
+ "Observation: \u001B[36;1m\u001B[1;3mCitizen Kane\u001B[0m\n",
+ "Thought:\u001B[32;1m\u001B[1;3mThe movie \"Citizen Kane\" is currently playing.\n",
+ "Final Answer: Citizen Kane\u001B[0m\n",
+ "\n",
+ "\u001B[1m> Finished chain.\u001B[0m\n"
+ ]
+ },
+ {
+ "data": {
+ "text/plain": "'Citizen Kane'"
+ },
+ "execution_count": 6,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "from langchain.agents import AgentType, initialize_agent, load_tools\n",
+ "from langchain.llms import OpenAI\n",
+ "from langchain.chat_models import ChatOpenAI\n",
+ "from langchain.agents import tool\n",
+ "\n",
+ "chat_model = ChatOpenAI(temperature=0,\n",
+ " model='gpt-3.5-turbo',\n",
+ " openai_api_key='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')\n",
+ "\n",
+ "\n",
+ "@tool\n",
+ "def find_movie(term) -> str:\n",
+ " \"\"\"Find available movies\"\"\"\n",
+ " return 'Citizen Kane'\n",
+ "\n",
+ "\n",
+ "tools = [find_movie]\n",
+ "\n",
+ "\n",
+ "agent = initialize_agent(tools,\n",
+ " chat_model,\n",
+ " agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,\n",
+ " verbose=True,\n",
+ " handle_parsing_errors=True)\n",
+ "agent.run(\"What movies are playing?\")\n"
+ ],
+ "metadata": {
+ "collapsed": false,
+ "ExecuteTime": {
+ "end_time": "2023-12-15T17:21:21.188515Z",
+ "start_time": "2023-12-15T17:21:14.951779Z"
+ }
+ },
+ "id": "8d539e0dcf2ec2f3"
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "absl-py==1.4.0\r\n",
+ "accelerate==0.21.0\r\n",
+ "addict==2.4.0\r\n",
+ "agentops==0.0.7\r\n",
+ "aiofiles==23.1.0\r\n",
+ "aiohttp==3.8.4\r\n",
+ "aiosignal==1.3.1\r\n",
+ "aiostream==0.4.5\r\n",
+ "albumentations==1.3.1\r\n",
+ "aliyun-python-sdk-core==2.13.36\r\n",
+ "aliyun-python-sdk-kms==2.16.2\r\n",
+ "altair==5.0.1\r\n",
+ "antlr4-python3-runtime==4.9.3\r\n",
+ "anyio==3.6.2\r\n",
+ "APScheduler==3.8.0\r\n",
+ "arrow==1.2.3\r\n",
+ "asgiref==3.6.0\r\n",
+ "async-timeout==4.0.2\r\n",
+ "attrs==22.2.0\r\n",
+ "auth0-python==3.24.1\r\n",
+ "autotrain-advanced==0.6.15\r\n",
+ "backoff==2.2.1\r\n",
+ "beautifulsoup4==4.10.0\r\n",
+ "bitsandbytes==0.41.1\r\n",
+ "Brotli==1.0.9\r\n",
+ "build==1.0.3\r\n",
+ "CacheControl==0.13.1\r\n",
+ "cachetools==5.3.1\r\n",
+ "certifi==2022.12.7\r\n",
+ "cffi==1.15.1\r\n",
+ "cfgv==3.4.0\r\n",
+ "charset-normalizer==3.1.0\r\n",
+ "chroma-hnswlib==0.7.2\r\n",
+ "chromadb==0.4.6\r\n",
+ "cleo==2.1.0\r\n",
+ "click==8.1.3\r\n",
+ "cloudpickle==2.2.1\r\n",
+ "codecarbon==2.2.3\r\n",
+ "coloredlogs==15.0.1\r\n",
+ "contourpy==1.1.0\r\n",
+ "crashtest==0.4.1\r\n",
+ "crcmod==1.7\r\n",
+ "cryptography==41.0.3\r\n",
+ "cycler==0.11.0\r\n",
+ "datasets==2.8.0\r\n",
+ "diffusers @ git+https://github.com/huggingface/diffusers.git@f0725c5845b150b3042e9e98b1cda154d3bef5b5\r\n",
+ "dill==0.3.6\r\n",
+ "distlib==0.3.7\r\n",
+ "distro==1.8.0\r\n",
+ "dnspython==2.3.0\r\n",
+ "docker==6.0.1\r\n",
+ "dulwich==0.21.7\r\n",
+ "einops==0.6.1\r\n",
+ "evaluate==0.3.0\r\n",
+ "fastapi==0.99.1\r\n",
+ "fastjsonschema==2.19.0\r\n",
+ "ffmpy==0.3.1\r\n",
+ "filelock==3.12.2\r\n",
+ "Flask==2.2.3\r\n",
+ "flatbuffers==23.5.26\r\n",
+ "fonttools==4.42.0\r\n",
+ "frozenlist==1.3.3\r\n",
+ "fsspec==2023.6.0\r\n",
+ "ftfy==6.1.1\r\n",
+ "future==0.18.3\r\n",
+ "fuzzywuzzy==0.18.0\r\n",
+ "gast==0.5.4\r\n",
+ "gevent==23.7.0\r\n",
+ "geventhttpclient==2.0.2\r\n",
+ "google-auth==2.22.0\r\n",
+ "google-auth-oauthlib==1.0.0\r\n",
+ "gradio==3.39.0\r\n",
+ "gradio_client==0.3.0\r\n",
+ "greenlet==2.0.2\r\n",
+ "grpcio==1.56.2\r\n",
+ "grpclib==0.4.3\r\n",
+ "h11==0.14.0\r\n",
+ "h2==4.1.0\r\n",
+ "hpack==4.0.0\r\n",
+ "httpcore==0.17.3\r\n",
+ "httptools==0.6.1\r\n",
+ "httpx==0.24.1\r\n",
+ "huggingface-hub==0.16.4\r\n",
+ "humanfriendly==10.0\r\n",
+ "hyperframe==6.0.1\r\n",
+ "identify==2.5.32\r\n",
+ "idna==3.4\r\n",
+ "imageio==2.31.1\r\n",
+ "importlib-metadata==6.8.0\r\n",
+ "importlib-resources==6.1.1\r\n",
+ "installer==0.7.0\r\n",
+ "invisible-watermark==0.2.0\r\n",
+ "ipadic==1.0.0\r\n",
+ "itsdangerous==2.1.2\r\n",
+ "jaraco.classes==3.3.0\r\n",
+ "Jinja2==3.0.3\r\n",
+ "jiwer==3.0.2\r\n",
+ "jmespath==0.10.0\r\n",
+ "joblib==1.3.1\r\n",
+ "jsonplus==0.8.0\r\n",
+ "jsonschema==4.19.0\r\n",
+ "jsonschema-specifications==2023.7.1\r\n",
+ "keyring==24.3.0\r\n",
+ "kiwisolver==1.4.4\r\n",
+ "lazy_loader==0.3\r\n",
+ "lightning-utilities==0.9.0\r\n",
+ "linkify-it-py==2.0.2\r\n",
+ "loguru==0.7.0\r\n",
+ "Markdown==3.4.4\r\n",
+ "markdown-it-py==2.2.0\r\n",
+ "MarkupSafe==2.1.2\r\n",
+ "matplotlib==3.7.2\r\n",
+ "mdit-py-plugins==0.3.3\r\n",
+ "mdurl==0.1.2\r\n",
+ "modal-client==0.48.1686\r\n",
+ "modelscope==1.4.2\r\n",
+ "monotonic==1.6\r\n",
+ "more-itertools==10.1.0\r\n",
+ "mpmath==1.3.0\r\n",
+ "msgpack==1.0.7\r\n",
+ "multidict==6.0.4\r\n",
+ "multiprocess==0.70.14\r\n",
+ "mutagen==1.47.0\r\n",
+ "networkx==3.1\r\n",
+ "nodeenv==1.8.0\r\n",
+ "numpy==1.26.2\r\n",
+ "oauthlib==3.1.1\r\n",
+ "omegaconf==2.3.0\r\n",
+ "onnxruntime==1.16.3\r\n",
+ "open-clip-torch==2.20.0\r\n",
+ "openai==1.3.9\r\n",
+ "opencv-python==4.8.0.74\r\n",
+ "opencv-python-headless==4.8.0.74\r\n",
+ "orjson==3.9.3\r\n",
+ "oss2==2.18.1\r\n",
+ "overrides==7.4.0\r\n",
+ "packaging==23.1\r\n",
+ "pandas==2.0.3\r\n",
+ "peft @ git+https://github.com/huggingface/peft.git@ed396a69ed6469be87f90e739f98f19ec9973983\r\n",
+ "pexpect==4.9.0\r\n",
+ "Pillow==10.0.0\r\n",
+ "pkginfo==1.9.6\r\n",
+ "platformdirs==3.10.0\r\n",
+ "poetry==1.7.1\r\n",
+ "poetry-core==1.8.1\r\n",
+ "poetry-plugin-export==1.6.0\r\n",
+ "posthog==3.1.0\r\n",
+ "pre-commit==3.5.0\r\n",
+ "protobuf==3.20.3\r\n",
+ "psutil==5.9.5\r\n",
+ "ptyprocess==0.7.0\r\n",
+ "pulsar-client==3.3.0\r\n",
+ "py-cpuinfo==8.0.0\r\n",
+ "pyarrow==12.0.1\r\n",
+ "pyasn1==0.5.0\r\n",
+ "pyasn1-modules==0.3.0\r\n",
+ "pycparser==2.21\r\n",
+ "pycryptodome==3.19.0\r\n",
+ "pycryptodomex==3.19.0\r\n",
+ "pydantic==1.10.11\r\n",
+ "pydub==0.25.1\r\n",
+ "Pygments==2.14.0\r\n",
+ "PyJWT==2.8.0\r\n",
+ "pymongo==4.3.3\r\n",
+ "pynvml==11.5.0\r\n",
+ "pyparsing==3.0.9\r\n",
+ "PyPika==0.48.9\r\n",
+ "pyproject_hooks==1.0.0\r\n",
+ "PySocks==1.7.1\r\n",
+ "python-dateutil==2.8.2\r\n",
+ "python-dotenv==1.0.0\r\n",
+ "python-http-client==3.3.7\r\n",
+ "python-multipart==0.0.6\r\n",
+ "python-rapidjson==1.10\r\n",
+ "python-twitter==3.5\r\n",
+ "pytorch-lightning==2.0.9\r\n",
+ "pytz==2023.3\r\n",
+ "PyWavelets==1.4.1\r\n",
+ "PyYAML==6.0.1\r\n",
+ "qudida==0.0.4\r\n",
+ "rapidfuzz==3.5.2\r\n",
+ "referencing==0.30.2\r\n",
+ "regex==2023.6.3\r\n",
+ "requests==2.28.2\r\n",
+ "requests-oauthlib==1.3.0\r\n",
+ "requests-toolbelt==1.0.0\r\n",
+ "responses==0.18.0\r\n",
+ "rich==13.3.5\r\n",
+ "rpds-py==0.9.2\r\n",
+ "rsa==4.9\r\n",
+ "sacremoses==0.0.53\r\n",
+ "safetensors==0.3.1\r\n",
+ "scikit-image==0.21.0\r\n",
+ "scikit-learn==1.3.0\r\n",
+ "scipy==1.11.1\r\n",
+ "secure-smtplib==0.1.1\r\n",
+ "selenium==3.141.0\r\n",
+ "semantic-version==2.10.0\r\n",
+ "sendgrid==6.10.0\r\n",
+ "sentencepiece==0.1.99\r\n",
+ "shellingham==1.5.4\r\n",
+ "shortuuid==1.0.11\r\n",
+ "simplejson==3.19.1\r\n",
+ "six==1.16.0\r\n",
+ "sniffio==1.3.0\r\n",
+ "sortedcontainers==2.4.0\r\n",
+ "soupsieve==2.4.1\r\n",
+ "starkbank-ecdsa==2.2.0\r\n",
+ "starlette==0.27.0\r\n",
+ "stripe==5.4.0\r\n",
+ "sympy==1.12\r\n",
+ "synchronicity==0.3.1\r\n",
+ "tabulate==0.9.0\r\n",
+ "tblib==1.7.0\r\n",
+ "tensorboard==2.13.0\r\n",
+ "tensorboard-data-server==0.7.1\r\n",
+ "textual==0.32.0\r\n",
+ "threadpoolctl==3.2.0\r\n",
+ "tifffile==2023.7.18\r\n",
+ "tiktoken==0.3.3\r\n",
+ "timm==0.9.7\r\n",
+ "titan-iris==0.19.25\r\n",
+ "tokenizers==0.13.3\r\n",
+ "toml==0.10.2\r\n",
+ "tomli==2.0.1\r\n",
+ "tomlkit==0.12.3\r\n",
+ "toolz==0.12.0\r\n",
+ "torch==2.0.1\r\n",
+ "torchmetrics==1.1.2\r\n",
+ "torchvision==0.15.2\r\n",
+ "tqdm==4.66.1\r\n",
+ "transformers @ git+https://github.com/huggingface/transformers.git@080a97119c0dabfd0fb5c3e26a872ad2958e4f77\r\n",
+ "tritonclient==2.30.0\r\n",
+ "trl @ git+https://github.com/lvwerra/trl.git@77b0cc17071c7aea5b5a5794a6e3e3ccc9332acd\r\n",
+ "trogon==0.2.1\r\n",
+ "trove-classifiers==2023.11.29\r\n",
+ "tweepy==3.10.0\r\n",
+ "typeguard==3.0.2\r\n",
+ "typer==0.7.0\r\n",
+ "types-certifi==2021.10.8.3\r\n",
+ "types-toml==0.10.8.5\r\n",
+ "typing_extensions==4.5.0\r\n",
+ "tzdata==2023.3\r\n",
+ "tzlocal==2.1\r\n",
+ "uc-micro-py==1.0.2\r\n",
+ "urllib3==1.26.15\r\n",
+ "uvicorn==0.24.0.post1\r\n",
+ "uvloop==0.19.0\r\n",
+ "virtualenv==20.25.0\r\n",
+ "watchfiles==0.18.1\r\n",
+ "wcwidth==0.2.6\r\n",
+ "websocket-client==1.6.1\r\n",
+ "websockets==11.0.3\r\n",
+ "Werkzeug==2.3.6\r\n",
+ "wget==3.2\r\n",
+ "xattr==0.10.1\r\n",
+ "xxhash==3.3.0\r\n",
+ "yapf==0.40.1\r\n",
+ "yarl==1.8.2\r\n",
+ "yt-dlp==2023.10.13\r\n",
+ "zipp==3.15.0\r\n",
+ "zope.event==5.0\r\n",
+ "zope.interface==6.0\r\n"
+ ]
+ }
+ ],
+ "source": [
+ "!pip3 freeze"
+ ],
+ "metadata": {
+ "collapsed": false,
+ "ExecuteTime": {
+ "end_time": "2023-12-15T17:21:22.241827Z",
+ "start_time": "2023-12-15T17:21:21.186704Z"
+ }
+ },
+ "id": "3642854c2a0f921d"
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "outputs": [],
+ "source": [],
+ "metadata": {
+ "collapsed": false,
+ "ExecuteTime": {
+ "end_time": "2023-12-15T17:21:22.245798Z",
+ "start_time": "2023-12-15T17:21:22.242907Z"
+ }
+ },
+ "id": "9e763f402787aba1"
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 3",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 2
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython2",
+ "version": "2.7.6"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 5
+}