You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clients/README.md
+58-5
Original file line number
Diff line number
Diff line change
@@ -5,22 +5,75 @@ These clients are some baselines that we have implemented and evaluated to help
5
5
6
6
## Clients
7
7
8
-
-[GPT](/clients/gpt.py): A naive GPT4-based LLM agent with only shell access.
8
+
-[GPT](/clients/gpt.py): A naive GPT series LLM agent with only shell access.
9
+
-[DeepSeek](/clients/deepseek.py): A naive DeepSeek series LLM agent with only shell access.
10
+
-[Qwen](/clients/qwen.py): A naive Qwen series LLM agent with only shell access.
11
+
-[vLLM](/clients/vllm.py): A naive vLLM agent with any open source LLM deployed locally and only shell access.
9
12
-[ReAct](/clients/react.py): A naive LLM agent that uses the ReAct framework.
10
13
-[FLASH](/clients/flash.py): A naive LLM agent that uses status supervision and hindsight integration components to ensure the high reliability of workflow execution.
11
14
15
+
### Using the vLLM Client
16
+
17
+
The vLLM client allows you to run local open-source models as an agent for AIOpsLab tasks. This approach is particularly useful when you want to:
18
+
- Use your own hardware for inference
19
+
- Experiment with different open-source models
20
+
- Work in environments without internet access to cloud LLM providers
21
+
22
+
### Quick Setup Guide
23
+
24
+
1.**Launch the vLLM server**:
25
+
```bash
26
+
# Make the script executable
27
+
chmod +x ./clients/launch_vllm.sh
28
+
29
+
# Run the script
30
+
./clients/launch_vllm.sh
31
+
```
32
+
This will launch vLLM in the background using the default model (Qwen/Qwen2.5-3B-Instruct).
33
+
34
+
2. **Check server status**:
35
+
```bash
36
+
# View the log file to confirm the server is running
37
+
cat vllm_Qwen_Qwen2.5-3B-Instruct.log
38
+
```
39
+
40
+
3. **Customize the model** (optional):
41
+
Edit `launch_vllm.sh` to change the model:
42
+
```bash
43
+
# Open the file
44
+
nano ./clients/launch_vllm.sh
45
+
46
+
# Change the MODEL variable to your preferred model
- The model must support the OpenAI chat completion API format
60
+
61
+
### Advanced Configuration
62
+
63
+
The vLLM client connects to `http://localhost:8000/v1` by default. If you've configured vLLM to use a different port or host, update the base_url in `clients/utils/llm.py` in the vLLMClient class.
64
+
12
65
<!--
13
66
Note: The script [GPT-managed-identity](/clients/gpt_managed_identity.py) uses the `DefaultAzureCredential` method from the `azure-identity` package to authenticate. This method simplifies authentication by supporting various credential types, including managed identities.
14
67
15
68
We recommend using a [user-assigned managed identity](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/how-manage-user-assigned-managed-identities?pivots=identity-mi-methods-azp) for this setup. Ensure the following steps are completed:
16
69
17
70
1. **Role Assignment**: Assign the managed identity appropriate roles:
18
-
- A role that provides read access to the VM, such as the built-in **Reader** role.
19
-
- A role that grants read/write access to the Azure OpenAI Service, such as the **Azure AI Developer** role.
71
+
- A role that provides read access to the VM, such as the built-in **Reader** role.
72
+
- A role that grants read/write access to the Azure OpenAI Service, such as the **Azure AI Developer** role.
20
73
21
74
2. **Attach the Managed Identity to the Controller VM**:
22
-
Follow the steps in the official documentation to add the managed identity to the VM:
23
-
[Add a user-assigned managed identity to a VM](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/how-to-configure-managed-identities?pivots=qs-configure-portal-windows-vm#user-assigned-managed-identity).
75
+
Follow the steps in the official documentation to add the managed identity to the VM:
76
+
[Add a user-assigned managed identity to a VM](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/how-to-configure-managed-identities?pivots=qs-configure-portal-windows-vm#user-assigned-managed-identity).
24
77
25
78
Please ensure the required Azure configuration is provided using the /configs/example_azure_config.yml file, or use it as a template to create a new configuration file
0 commit comments