- C/C++ compiler {
gcc
,clang
} - CMake
3.29
or higher - CTranslate2 (refer to CTranslate2 installation)
- Recursively clone this repository
git clone --recursive https://github.com/alexlnkp/remi-cpp.git
- Enter the cloned repository.
- Run
chmod +x autobuild
to make the build script script executable. - Run
./autobuild
to build with a single click.
- Make sure your model is compatible with CTranslate2. If it isn't - use the CTConverter script
- Refer to CTranslate2 documentation for list of conversion-compatible models.
- Tweak the
config.json
file accordingly to modify the inference parameters. - So far you need to change source code to modify prompt, but soon (when i fix the broken generation) you won't have to.
- Enjoy... I guess? Most of the results so far are stuff like this:
## Response:
Assistant: 2147453983566521C*24...722-2262609322,CM2x3XP (5241)41D832MC
177333323C7
-5476193
This project is licensed under the MIT License - see the LICENSE file for details.
- A working inference
- Adapter loader
- A working fine-tuner
- Clone Nlohmann/JSON repository
git clone https://github.com/nlohmann/json.git
- Enter the cloned repository.
- Run
cmake -B build
- Run
cmake --install build
- Recursively clone CTranslate2 repository
git clone --recursive https://github.com/OpenNMT/CTranslate2.git
- Enter the cloned repository.
- Run
cmake -B build
- Run
cmake --build build
- Run
cmake --install build
- Create a virtual environment using
python -m venv .venv
- Activate the virtual environment using
source .venv/bin/activate
(Linux) or. .venv/Scripts/activate
(Windows) - Install requirements using
pip install -r scripts/converter.req
- Run the script using
python scripts/ctconverter.py