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

session id property and notebook narration

Braelyn Boynton2dbdbf84a2cc
diff --git a/agentops/langchain_callback_handler.py b/agentops/langchain_callback_handler.py
index c6c6b51b..313202ef 100644
--- a/agentops/langchain_callback_handler.py
+++ b/agentops/langchain_callback_handler.py
@@ -49,3 +49,6 @@ class LangchainCallbackHandler(BaseCallbackHandler):
self.events[run_id].end_timestamp = get_ISO_time()
self.ao_client.record(self.events[run_id])
+ @property
+ def session_id(self):
+ return self.ao_client.session.session_id
diff --git a/examples/langchain_examples.ipynb b/examples/langchain_examples.ipynb
index c62c1b76..8ff65714 100644
--- a/examples/langchain_examples.ipynb
+++ b/examples/langchain_examples.ipynb
@@ -1,5 +1,19 @@
{
"cells": [
+ {
+ "cell_type": "markdown",
+ "source": [
+ "# AgentOps Langchain Agent Implementation\n",
+ "\n",
+ "Using AgentOps monitoring with Langchain is simple. We've created a LangchainCallbackHandler that will do all of the heavy lifting!\n",
+ "\n",
+ "First we'll import the typical Langchain packages:"
+ ],
+ "metadata": {
+ "collapsed": false
+ },
+ "id": "e0deea1ab1db2a19"
+ },
{
"cell_type": "code",
"execution_count": 1,
@@ -7,8 +21,8 @@
"metadata": {
"collapsed": true,
"ExecuteTime": {
- "end_time": "2023-12-15T17:20:48.236786Z",
- "start_time": "2023-12-15T17:20:46.393933Z"
+ "end_time": "2023-12-15T18:00:15.853166Z",
+ "start_time": "2023-12-15T18:00:14.651483Z"
}
},
"outputs": [
@@ -22,18 +36,52 @@
}
],
"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": "markdown",
+ "source": [
+ "The only difference with using AgentOps is that we'll also import this special Callback Handler"
+ ],
+ "metadata": {
+ "collapsed": false
+ },
+ "id": "57ddb8eca4e8a3cb"
+ },
{
"cell_type": "code",
"execution_count": 2,
"outputs": [],
+ "source": [
+ "from agentops.langchain_callback_handler import LangchainCallbackHandler"
+ ],
+ "metadata": {
+ "collapsed": false,
+ "ExecuteTime": {
+ "end_time": "2023-12-15T18:00:15.861201Z",
+ "start_time": "2023-12-15T18:00:15.854596Z"
+ }
+ },
+ "id": "585f00bb186711a7"
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "Next, we'll grab our two API keys. You can use dotenv like below or however else you like to load environment variables"
+ ],
+ "metadata": {
+ "collapsed": false
+ },
+ "id": "523be945b85dc5d5"
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "outputs": [],
"source": [
"load_dotenv()\n",
"OPENAI_API_KEY = os.getenv('OPENAI_API_KEY')\n",
@@ -42,42 +90,63 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-12-15T17:20:48.241802Z",
- "start_time": "2023-12-15T17:20:48.237524Z"
+ "end_time": "2023-12-15T18:00:15.865514Z",
+ "start_time": "2023-12-15T18:00:15.861478Z"
}
},
"id": "1490411415d7317c"
},
+ {
+ "cell_type": "markdown",
+ "source": [
+ "This is where AgentOps comes into play. Before creating our LLM instance via Langchain, first we'll create an instance of the AO LangchainCallbackHandler.\n",
+ "\n",
+ "Pass in your API key, and optionally any tags to describe this session for easier lookup in the AO dashboard. You can also retrieve the `session_id` of the newly created session."
+ ],
+ "metadata": {
+ "collapsed": false
+ },
+ "id": "8371ec020e634dd0"
+ },
{
"cell_type": "code",
- "execution_count": 3,
+ "execution_count": 4,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
- "created callback handler\n"
+ "Agent Ops session ID: 3c9deaa9-577c-49ac-9783-e7d0b0fecfbd\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)"
+ "handler = LangchainCallbackHandler(api_key=AGENTOPS_API_KEY, tags=['Langchain Example'])\n",
+ "print(\"Agent Ops session ID: \" + handler.session_id)\n",
+ "llm = ChatOpenAI(openai_api_key=OPENAI_API_KEY, callbacks=[handler])"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-12-15T17:20:49.466217Z",
- "start_time": "2023-12-15T17:20:48.240866Z"
+ "end_time": "2023-12-15T18:00:16.808358Z",
+ "start_time": "2023-12-15T18:00:15.865350Z"
}
},
"id": "432921383f39c9d5"
},
+ {
+ "cell_type": "markdown",
+ "source": [
+ "Finally, let's use our agent! All of the actions will be recorded in the AO Dashboard"
+ ],
+ "metadata": {
+ "collapsed": false
+ },
+ "id": "58bbca0b49302b2b"
+ },
{
"cell_type": "code",
- "execution_count": 4,
+ "execution_count": 5,
"outputs": [],
"source": [
"agent = initialize_agent([],\n",
@@ -89,15 +158,15 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-12-15T17:20:49.470481Z",
- "start_time": "2023-12-15T17:20:49.468025Z"
+ "end_time": "2023-12-15T18:00:16.812313Z",
+ "start_time": "2023-12-15T18:00:16.809585Z"
}
},
"id": "d538b20aa954ee80"
},
{
"cell_type": "code",
- "execution_count": 5,
+ "execution_count": 6,
"outputs": [
{
"name": "stdout",
@@ -106,177 +175,42 @@
"\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",
+ "\u001B[32;1m\u001B[1;3mSure! Here's a short poem about secret agents:\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",
+ "In shadows they dwell, unseen by the eye,\n",
+ "Masters of disguise, their secrets held high.\n",
+ "They weave through the night, like whispers in air,\n",
+ "Agents of mystery, with skills beyond compare.\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": [
+ "With steady hands, they handle the unknown,\n",
+ "Unraveling secrets, their cover not blown.\n",
+ "They traverse the globe, in search of the truth,\n",
+ "Stealthily moving, like shadows of youth.\n",
"\n",
+ "Their mission, you ask? To protect and defend,\n",
+ "The world's safety, until the very end.\n",
+ "With gadgets and wit, they outsmart their foes,\n",
+ "Silent warriors, where nobody knows.\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",
+ "In dark alleys they gather, plans tightly knit,\n",
+ "Their loyalty unwavering, they never quit.\n",
+ "For justice they fight, with honor and grace,\n",
+ "A secret agent's life, a dangerous embrace.\n",
+ "\n",
+ "So raise your glass to these guardians unseen,\n",
+ "The heroes of shadows, in suits so pristine.\n",
+ "They sacrifice all, for a world that's unknown,\n",
+ "Secret agents, silent heroes, never alone.\n",
+ "\n",
+ "Final Answer: Secret agents, guardians of the night,\n",
+ "A poem to honor their courage and might.\u001B[0m\n",
"\n",
"\u001B[1m> Finished chain.\u001B[0m\n"
]
},
{
"data": {
- "text/plain": "'Citizen Kane'"
+ "text/plain": "'Secret agents, guardians of the night,\\nA poem to honor their courage and might.'"
},
"execution_count": 6,
"metadata": {},
@@ -284,340 +218,16 @@
}
],
"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"
+ "agent.run(\"Please write me a short poem about secret agents\")"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-12-15T17:21:21.188515Z",
- "start_time": "2023-12-15T17:21:14.951779Z"
+ "end_time": "2023-12-15T18:00:22.740852Z",
+ "start_time": "2023-12-15T18:00:16.812664Z"
}
},
- "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"
+ "id": "6dfb127553751384"
}
],
"metadata": {