GithubHelp home page GithubHelp logo

julianjandeleit / swarm_descriptions Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.06 MB

Generating a dataset of descriptions of swarm missions and respective simulator configuration to finetune an LLM.

License: MIT License

Python 9.00% Rich Text Format 1.35% Dockerfile 0.34% CMake 0.03% C++ 1.15% Shell 0.04% mupad 0.03% Jupyter Notebook 88.06%
argos automode llms mistral-7b swarm-robotics

swarm_descriptions's Introduction

Swarm Descriptions: Creating and Demonstrating a Dataset for Swarm Mission Generation from Natural Language

Installation

For installation, the Hatch Project Manager is recommended. Hatch can be installed with pipx install hatch, assuming pipx is installed. Pipx can be installed using most package managers or with python -m pip install --user pipx. Make sure to execute pipx ensurepath after installation.

From repository level start hatch virtual python environment with hatch shell and install python module with python -m pip install -e ..

Copy custom directory to /opt/argos/custom/. Execute xhost +local:docker to enable visualization.

Execution

Scrips

Run scripts like python scripts/test.py -h inside the hatch virtual environment.

  • generate_data.py samples descriptions and configurations for demonstration.
  • parse_eval_datasets.py converts the dataset generated by the inference notebook for evaluation.
  • eval_results.py contains the data for evaluation of the finetuned model.
  • run_config_params.py runs configuration params xml generated from dataset (e.g. generate_data.py.)
  • test.py prints several properties generated from a randomly sampled mission.

Notebooks:

Finetuning and inference was done on Kaggle.

  • figures.ipynb figures and metrics for report.
  • mistral-finetuning-swarm.ipynb finetuning the LLM on our dataset. Includes relevant functions on how to generate dataset from our python module.
  • mistral-inference-swarm.ipynb generating configuration params from descriptions by fined LLM for evaluation.

Related Work

Association

This work is part of my masters project at the University of Konstanz. Find the project report at project_report.pdf or the presentation at project_slides.pdf.

Troubleshooting

  • hatch shell cannot install wheel: python-version in pyproject.toml needs to be in the shape of ">=3.10" and not "==3.10.12". At least on Windows.

swarm_descriptions's People

Contributors

julianjandeleit avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.