skratos115
commited on
Commit
•
9cf143d
1
Parent(s):
3950a53
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
tags:
|
4 |
+
- text-generation
|
5 |
+
- llama 3.1
|
6 |
+
- instruct
|
7 |
+
- unsloth
|
8 |
+
- OpenDevin
|
9 |
+
datasets:
|
10 |
+
- skratos115/opendevin_DataDevinator
|
11 |
+
- argilla/magpie-ultra-v0.1
|
12 |
+
---
|
13 |
+
|
14 |
+
## LLAMA_3.1_8B_OpenDevin_DEVINator
|
15 |
+
brought to you by skratos115 (HF) / Kingatlas115 (GH) in colaboration with the official Opendevin Team ~xingyaoww
|
16 |
+
|
17 |
+
# LLAMA_3.1_8B-Instruct with OpenDevin Tool Calling for codeact agent
|
18 |
+
|
19 |
+
## Overview
|
20 |
+
|
21 |
+
This project involves the fine-tuning of the `LLAMA_3.1_8B-Instruct` model using my own dataset skratos115/opendevin_DataDevinator that incorperates around 2k lines from argilla and trained with the help of Unsloth. The primary goal is to develop a more powerful LLM capable of effectively using the CodeAct framework for tool calling. This is still in early development and should not be used in production. We are working on building a bigger dataset for tool paths/ trajectories and could you all the help we can by using the feedback integration to help us build better trajectories and release to the public via MIT license for OSS model training.
|
22 |
+
read more here:https://x.com/gneubig/status/1802740786242420896 and http://www.linkedin.com/feed/update/urn:li:activity:7208507606728929280/
|
23 |
+
|
24 |
+
## Model Details
|
25 |
+
|
26 |
+
- **Model Name**: LLAMA_3.1_8B_OpenDevin_DEVINator
|
27 |
+
- **Dataset**: skratos115/opendevin_DataDevinator
|
28 |
+
- **Training Platform**: Unsloth
|
29 |
+
|
30 |
+
provided full merged files
|
31 |
+
or
|
32 |
+
Quantized f16, q4_k_m, Q5_k_m gguf files.
|
33 |
+
I used the LLAMA_3.1_8B_OpenDevin_DEVINator_Q5_K_M.gguf for my testing and got it to write me a simple script, install dependencies,and search the web.. more testing to come.
|
34 |
+
|
35 |
+
## Running the Model
|
36 |
+
|
37 |
+
You can run this model using `vLLM` or `ollama`. The following instructions are for using `ollama`.
|
38 |
+
|
39 |
+
### Prerequisites
|
40 |
+
|
41 |
+
- Docker
|
42 |
+
- make sure your ollama is serving to all bound ips.
|
43 |
+
- upload your guff file to ollama
|
44 |
+
|
45 |
+
### Running with Ollama
|
46 |
+
|
47 |
+
1. **Install Docker**: Ensure you have Docker installed on your machine.
|
48 |
+
|
49 |
+
|
50 |
+
3. **Set Up Your Workspace**:
|
51 |
+
|
52 |
+
WORKSPACE_BASE=$(pwd)/workspace
|
53 |
+
|
54 |
+
|
55 |
+
4. **Run the Docker Command**:
|
56 |
+
docker run -it \
|
57 |
+
--pull=always \
|
58 |
+
-e SANDBOX_USER_ID=$(id -u) \
|
59 |
+
-e PERSIST_SANDBOX="true" \
|
60 |
+
-e LLM_API_KEY="ollama" \
|
61 |
+
-e LLM_BASE_URL="http://192.168.1.23:11434" \
|
62 |
+
-e LLM_OLLAMA_BASE_URL="192.168.1.23:11434" \
|
63 |
+
-e SSH_PASSWORD="make something up here" \
|
64 |
+
-e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \
|
65 |
+
-v $WORKSPACE_BASE:/opt/workspace_base \
|
66 |
+
-v /var/run/docker.sock:/var/run/docker.sock \
|
67 |
+
-p 3000:3000 \
|
68 |
+
--add-host host.docker.internal:host-gateway \
|
69 |
+
--name opendevin-app-$(date +%Y%m%d%H%M%S) \
|
70 |
+
ghcr.io/opendevin/opendevin:main
|
71 |
+
|
72 |
+
Replace ipaddress with your actual local IP address and make sure you have your lamma server hosted on all bound ip addresses. i had issues when i tried to use `0.0.0.0` for localhost.
|
73 |
+
|
74 |
+
5. configure OD
|
75 |
+
set the model to what ever guff you have running.
|
76 |
+
ex i used ollama/LLAMA_3.1_8B_OpenDevin_DEVINator_Q5_K_M.gguf
|
77 |
+
|
78 |
+
## Early Development
|
79 |
+
|
80 |
+
This project is in its early stages, and we are continuously working to improve the model and its capabilities. Contributions and feedback are welcome.
|
81 |
+
|
82 |
+
## License
|
83 |
+
|
84 |
+
This project is licensed under the [MIT License](LICENSE).
|
85 |
+
|
86 |
+
## Support my work
|
87 |
+
|
88 |
+
Right now all of my work has been funded personally, if you like my work and can help support growth in the AI community consider joining or donating to my Patreon.
|
89 |
+
[Patreon Link](https://www.patreon.com/atlasaisecurity)
|
90 |
+
|
91 |
+
## DataDEVINator
|
92 |
+
This is a python based tool i created for this purpose and took alot of time and money to build this tool and model. i will be releasing it to the public shortly, prob 1-2 weeks.
|
93 |
+
|
94 |
+
Tool Capabilities:
|
95 |
+
|
96 |
+
Download datasets from Hugging Face
|
97 |
+
Process local CSV or Parquet files
|
98 |
+
Preprocess datasets to standardize column names
|
99 |
+
Generate solutions using nvidia, OpenAI, Hugging Face, or Ollama models
|
100 |
+
Reformat solutions to OpenDevin format
|
101 |
+
Grade and categorize solutions 1-5 scale
|
102 |
+
Perform dry runs on a subset of the data
|
103 |
+
Automatically remove low-ranking solutions
|
104 |
+
Upload processed datasets to Hugging Face
|
105 |
+
promt improver to add more complexity
|
106 |
+
|