extract 0 0 0

dora-rs/dora-idefics2

published by @dora-rs

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
3.6K
Last 30 days
140
Likes
5
Size
221 KB
Created on HF
2024-04-06
Age
2 years ago

Description

Getting Started

Create a new conda environment for robomaster

conda create -n robomaster python=3.8

pip install robomaster dora-rs==0.3.3

Create a new conda environment for idefics2. This requirements file suppose that your using cu122.

conda create -n idefics2 python=3.10

conda activate idefics2

pip install -r requirements.txt

Robomaster Jailbreak

Installation of the Robomaster S1 Hack

This guide is an updated version of the original Robomaster… See the full description on the dataset page: https://huggingface.co/datasets/dora-rs/dora-idefics2.

Tags

region:us

README current version from Hugging Face

Getting Started

Create a new conda environment for robomaster

conda create -n robomaster python=3.8
pip install robomaster dora-rs==0.3.3

Create a new conda environment for idefics2. This requirements file suppose that your using cu122.

conda create -n idefics2 python=3.10
conda activate idefics2
pip install -r requirements.txt

Robomaster Jailbreak

Installation of the Robomaster S1 Hack

This guide is an updated version of the original Robomaster S1 SDK Hack Guide and is intended for use on a Windows 11 system.

Prerequisites

Before you get started, you'll need the following:

  • Robomaster S1 (do not update it to the latest version, as it may block the hack).
  • Robomaster App.
  • Android SDK Platform-Tools. Simply unzip it and keep the path handy.
  • A micro USB cable. If this guide doesn't work, there might be an issue with the cable, and you may need to replace it with one that supports data transfer.

Instructions

  1. Start the Robomaster App and connect the Robomaster S1 using one of the two options provided (via router or via Wi-Fi).

  2. While connected, use a micro USB cable to connect the robot to the computer's USB port. You should hear a beep sound, similar to when you connect any device. (Please note that no other Android device should be connected via USB during this process).

  3. In the Lab section of the app, create a new Python application and paste the following code:

    def root_me(module):
        __import__ = rm_define.__dict__['__builtins__']['__import__']
        return __import__(module, globals(), locals(), [], 0)
    
    builtins = root_me('builtins')
    subprocess = root_me('subprocess')
    proc = subprocess.Popen('/system/bin/adb_en.sh', shell=True, executable='/system/bin/sh', stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    
  4. Run the code; there should be no errors, and the console should display Execution Complete

  5. Without closing the app, navigate to the folder containing the Android SDK Platform-Tools and open a terminal inside it.

  6. Run the ADP command .\adb.exe devices . If everything is working correctly, you should see output similar to this: image

  7. Execute the upload.sh script located in the folder s1_SDK.

  8. Once everything has been executed, restart the S1 by turning it off and then back on. While it's booting up, you should hear two chimes instead of the usual single chime, indicating that the hack has been successful.

Robomaster Connection

Make sure to be connected using the wifi hotspot of the robomaster which is the most stable one.

The default password for the hotpsot is: 12341234

You might need to have a second wifi card if you want to be able to run the demo with internet on.

Post-Installation test

Please try running idefics2 with:

conda activate idefics2
python tests/test_idefics2.py

Please try running robomaster with:

conda activate robomaster
python tests/test_robomaster.py

Running the demo

export HF_TOKEN=<TOKEN>
conda activate idefics2
# This requires dora==0.3.3, update with:
# cargo install dora-cli
dora up
dora start graphs/dataflow_robot_vlm.yml --attach --hot-reload

Current way to interact is by press up arrow key on laptop to record a message and send to the VLM

Running the demo without robot

export HF_TOKEN=<TOKEN>
conda activate idefics2
# This requires dora==0.3.3, update with:
# cargo install dora-cli
dora up
dora start graphs/dataflow_vlm_basic.yml --attach --hot-reload

Current way to interact is by press up arrow key on laptop to record a message and send to the VLM

Kill process in case of failure

Due to a Python GIL issue, we currently meed to kill processes manually. You can use the following command to do so:

pkill -f 'import dora;'

LICENSE

While the source of this library is licensed under Apache-2.0, the usage of the Text to Speech(TTS) SystemEngine is licensed under Mozilla Public License 2.0 and GNU Lesser General Public License (LGPL) version 3.0.

Feel free to remove the TTS SystemEngine.

README history 20 revisions

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.

  1. 2024-05-05Improving overall components08274444.3 KB
    Loading...
  2. 2024-05-05Small update9b97c014.3 KB
    Loading...
  3. 2024-04-24Adding couple of working nodes533dd7a4.3 KB
    Loading...
  4. 2024-04-16Use latest transformers293b4144.3 KB
    Loading...
  5. 2024-04-16Fixing multiples small bugs3c8b0eb4.3 KB
    Loading...
  6. 2024-04-16fix minimized demo1646f184.3 KB
    Loading...
  7. 2024-04-15Adding fused_quantized fixbe75a6c4.3 KB
    Loading...
  8. 2024-04-15Add license informationc826c434.3 KB
    Loading...
  9. 2024-04-15Adding S1 hack into the readme and improving navigation points037f8604.1 KB
    Loading...
  10. 2024-04-15Changing policy destination to keyword3eab1181.7 KB
    Loading...
  11. 2024-04-14updating clarity of the video8852f541.7 KB
    Loading...
  12. 2024-04-14Simplify planningc3afd261.7 KB
    Loading...
  13. 2024-04-14Simplifying robot control behaviorc641eb71.7 KB
    Loading...
  14. 2024-04-14replace idefics by a policy1a7150e1.7 KB
    Loading...
  15. 2024-04-14Fix demo testing23f48d81.7 KB
    Loading...
  16. 2024-04-13Adding policy node for controlling the robotfe79d421.7 KB
    Loading...
  17. 2024-04-12Use whisper instead of keyboardffc2aa41.5 KB
    Loading...
  18. 2024-04-12add pyttsx3 using espeak3f09bdf1.5 KB
    Loading...
  19. 2024-04-11Fix autoawq kernels requirements841b7c41.5 KB
    Loading...
  20. 2024-04-11Adding more info on the README810a70f1.2 KB
    Loading...

Used by abliterated models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.

Related datasets same stage · extract

Read further

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("dora-rs/dora-idefics2")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="dora-rs/dora-idefics2", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/dora-rs/dora-idefics2
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration