Instructions to use skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator", filename="LLAMA_3.1_8B_OpenDevin_DEVINator_.Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Q4_K_M # Run inference directly in the terminal: llama-cli -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Q4_K_M # Run inference directly in the terminal: llama-cli -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Q4_K_M
Use Docker
docker model run hf.co/skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Q4_K_M
- Ollama
How to use skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator with Ollama:
ollama run hf.co/skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Q4_K_M
- Unsloth Studio new
How to use skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator to start chatting
- Pi new
How to use skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator with Docker Model Runner:
docker model run hf.co/skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Q4_K_M
- Lemonade
How to use skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Q4_K_M
Run and chat with the model
lemonade run user.LLAMA_3.1_8B_OpenDevin_DEVINator-Q4_K_M
List all available models
lemonade list
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:# Run inference directly in the terminal:
llama-cli -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:# Run inference directly in the terminal:
./llama-cli -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:# Run inference directly in the terminal:
./build/bin/llama-cli -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:Use Docker
docker model run hf.co/skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:LLAMA_3.1_8B_OpenDevin_DEVINator
brought to you by skratos115 (HF) / Kingatlas115 (GH) in colaboration with the official Opendevin Team ~xingyaoww
LLAMA_3.1_8B-Instruct with OpenDevin Tool Calling for codeact agent
Overview
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.
read more here:https://x.com/gneubig/status/1802740786242420896 and http://www.linkedin.com/feed/update/urn:li:activity:7208507606728929280/
Model Details
- Model Name: LLAMA_3.1_8B_OpenDevin_DEVINator
- Dataset: skratos115/opendevin_DataDevinator
- Training Platform: Unsloth
provided full merged files or Quantized f16, q4_k_m, Q5_k_m gguf files. 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.
Running the Model
You can run this model using vLLM or ollama. The following instructions are for using ollama.
Prerequisites
- Docker
- make sure your ollama is serving to all bound ips.
- upload your guff file to ollama
Running with Ollama
Install Docker: Ensure you have Docker installed on your machine.
Set Up Your Workspace:
WORKSPACE_BASE=$(pwd)/workspace
Run the Docker Command: docker run -it
--pull=always
-e SANDBOX_USER_ID=$(id -u)
-e PERSIST_SANDBOX="true"
-e LLM_API_KEY="ollama"
-e LLM_BASE_URL="http://192.168.1.23:11434"
-e LLM_OLLAMA_BASE_URL="192.168.1.23:11434"
-e SSH_PASSWORD="make something up here"
-e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE
-v $WORKSPACE_BASE:/opt/workspace_base
-v /var/run/docker.sock:/var/run/docker.sock
-p 3000:3000
--add-host host.docker.internal:host-gateway
--name opendevin-app-$(date +%Y%m%d%H%M%S)
ghcr.io/opendevin/opendevin:main
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.
- configure OD set the model to what ever guff you have running. ex i used ollama/LLAMA_3.1_8B_OpenDevin_DEVINator_Q5_K_M.gguf
Early Development
This project is in its early stages, and we are continuously working to improve the model and its capabilities. Contributions and feedback are welcome.
License
This project is licensed under the MIT License.
Support my work
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. Patreon Link
DataDEVINator
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.
Tool Capabilities:
Download datasets from Hugging Face Process local CSV or Parquet files Preprocess datasets to standardize column names Generate solutions using nvidia, OpenAI, Hugging Face, or Ollama models Reformat solutions to OpenDevin format Grade and categorize solutions 1-5 scale Perform dry runs on a subset of the data Automatically remove low-ranking solutions Upload processed datasets to Hugging Face promt improver to add more complexity
- Downloads last month
- 36
4-bit
5-bit
16-bit
Install from brew
# Start a local OpenAI-compatible server with a web UI: llama-server -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator:# Run inference directly in the terminal: llama-cli -hf skratos115/LLAMA_3.1_8B_OpenDevin_DEVINator: