Giter Site home page Giter Site logo

ravenscroftj / turbopilot Goto Github PK

View Code? Open in Web Editor NEW
3.8K 43.0 129.0 2.6 MB

Turbopilot is an open source large-language-model based code completion engine that runs locally on CPU

License: BSD 3-Clause "New" or "Revised" License

Python 1.71% Shell 0.03% CMake 0.50% C++ 97.76%
code-completion cpp language-model machine-learning

turbopilot's Introduction

TurboPilot πŸš€

Turbopilot is deprecated/archived as of 30/9/23. There are other mature solutions that meet the community's needs better. Please read my blog post about my decision to down tools and for recommended alternatives.


Mastodon Follow BSD Licensed Time Spent

TurboPilot is a self-hosted copilot clone which uses the library behind llama.cpp to run the 6 Billion Parameter Salesforce Codegen model in 4GiB of RAM. It is heavily based and inspired by on the fauxpilot project.

NB: This is a proof of concept right now rather than a stable tool. Autocompletion is quite slow in this version of the project. Feel free to play with it, but your mileage may vary.

a screen recording of turbopilot running through fauxpilot plugin

✨ Now Supports StableCode 3B Instruct simply use TheBloke's Quantized GGML models and set -m stablecode.

✨ New: Refactored + Simplified: The source code has been improved to make it easier to extend and add new models to Turbopilot. The system now supports multiple flavours of model

✨ New: Wizardcoder, Starcoder, Santacoder support - Turbopilot now supports state of the art local code completion models which provide more programming languages and "fill in the middle" support.

🀝 Contributing

PRs to this project and the corresponding GGML fork are very welcome.

Make a fork, make your changes and then open a PR.

πŸ‘‹ Getting Started

The easiest way to try the project out is to grab the pre-processed models and then run the server in docker.

Getting The Models

You have 2 options for getting the model

Option A: Direct Download - Easy, Quickstart

You can download the pre-converted, pre-quantized models from Huggingface.

For low RAM users (4-8 GiB), I recommend StableCode and for high power users (16+ GiB RAM, discrete GPU or apple silicon) I recomnmend WizardCoder.

Turbopilot still supports the first generation codegen models from v0.0.5 and earlier builds. Although old models do need to be requantized.

You can find a full catalogue of models in MODELS.md.

Option B: Convert The Models Yourself - Hard, More Flexible

Follow this guide if you want to experiment with quantizing the models yourself.

βš™οΈ Running TurboPilot Server

Download the latest binary and extract it to the root project folder. If a binary is not provided for your OS or you'd prefer to build it yourself follow the build instructions

Run:

./turbopilot -m starcoder -f ./models/santacoder-q4_0.bin

The application should start a server on port 18080, you can change this with the -p option but this is the default port that vscode-fauxpilot tries to connect to so you probably want to leave this alone unless you are sure you know what you're doing.

If you have a multi-core system you can control how many CPUs are used with the -t option - for example, on my AMD Ryzen 5000 which has 6 cores/12 threads I use:

./codegen-serve -t 6 -m starcoder -f ./models/santacoder-q4_0.bin

To run the legacy codegen models. Just change the model type flag -m to codegen instead.

NOTE: Turbopilot 0.1.0 and newer re-quantize your codegen models old models from v0.0.5 and older. I am working on providing updated quantized codegen models

πŸ“¦ Running From Docker

You can also run Turbopilot from the pre-built docker image supplied here

You will still need to download the models separately, then you can run:

docker run --rm -it \
  -v ./models:/models \
  -e THREADS=6 \
  -e MODEL_TYPE=starcoder \
  -e MODEL="/models/santacoder-q4_0.bin" \
  -p 18080:18080 \
  ghcr.io/ravenscroftj/turbopilot:latest

Docker and CUDA

As of release v0.0.5 turbocode now supports CUDA inference. In order to run the cuda-enabled container you will need to have nvidia-docker enabled, use the cuda tagged versions and pass in --gpus=all to docker with access to your GPU like so:

docker run --gpus=all --rm -it \
  -v ./models:/models \
  -e THREADS=6 \
  -e MODEL_TYPE=starcoder \
  -e MODEL="/models/santacoder-q4_0.bin" \
  -e GPU_LAYERS=32 \
  -p 18080:18080 \
  ghcr.io/ravenscroftj/turbopilot:v0.2.0-cuda11-7

If you have a big enough GPU then setting GPU_LAYERS will allow turbopilot to fully offload computation onto your GPU rather than copying data backwards and forwards, dramatically speeding up inference.

Swap ghcr.io/ravenscroftj/turbopilot:v0.1.0-cuda11 for ghcr.io/ravenscroftj/turbopilot:v0.2.0-cuda12-0 or ghcr.io/ravenscroftj/turbopilot:v0.2.0-cuda12-2 if you are using CUDA 12.0 or 12.2 respectively.

You will need CUDA 11 or CUDA 12 later to run this container. You should be able to see /app/turbopilot listed when you run nvidia-smi.

Executable and CUDA

As of v0.0.5 a CUDA version of the linux executable is available - it requires that libcublas 11 be installed on the machine - I might build ubuntu debs at some point but for now running in docker may be more convenient if you want to use a CUDA GPU.

You can use GPU offloading via the --ngl option.

🌐 Using the API

Support for the official Copilot Plugin

Support for the official VS Code copilot plugin is underway (See ticket #11). The API should now be broadly compatible with OpenAI.

Using the API with FauxPilot Plugin

To use the API from VSCode, I recommend the vscode-fauxpilot plugin. Once you install it, you will need to change a few settings in your settings.json file.

  • Open settings (CTRL/CMD + SHIFT + P) and select Preferences: Open User Settings (JSON)
  • Add the following values:
{
    ... // other settings

    "fauxpilot.enabled": true,
    "fauxpilot.server": "http://localhost:18080/v1/engines",
}

Now you can enable fauxpilot with CTRL + SHIFT + P and select Enable Fauxpilot

The plugin will send API calls to the running codegen-serve process when you make a keystroke. It will then wait for each request to complete before sending further requests.

Calling the API Directly

You can make requests to http://localhost:18080/v1/engines/codegen/completions which will behave just like the same Copilot endpoint.

For example:

curl --request POST \
  --url http://localhost:18080/v1/engines/codegen/completions \
  --header 'Content-Type: application/json' \
  --data '{
 "model": "codegen",
 "prompt": "def main():",
 "max_tokens": 100
}'

Should get you something like this:

{
 "choices": [
  {
   "logprobs": null,
   "index": 0,
   "finish_reason": "length",
   "text": "\n  \"\"\"Main entry point for this script.\"\"\"\n  logging.getLogger().setLevel(logging.INFO)\n  logging.basicConfig(format=('%(levelname)s: %(message)s'))\n\n  parser = argparse.ArgumentParser(\n      description=__doc__,\n      formatter_class=argparse.RawDescriptionHelpFormatter,\n      epilog=__doc__)\n  "
  }
 ],
 "created": 1681113078,
 "usage": {
  "total_tokens": 105,
  "prompt_tokens": 3,
  "completion_tokens": 102
 },
 "object": "text_completion",
 "model": "codegen",
 "id": "01d7a11b-f87c-4261-8c03-8c78cbe4b067"
}

πŸ‘‰ Known Limitations

  • Currently Turbopilot only supports one GPU device at a time (it will not try to make use of multiple devices).

πŸ‘ Acknowledgements

turbopilot's People

Contributors

aperullo avatar c01o avatar crd716 avatar nvtienanh avatar ravenscroftj avatar swanserquack avatar virtualramblas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

turbopilot's Issues

I am new and Confused about the correct step for the section of "getting started"

I am thrilled to see this local AI coding assistant but I am unsure some of the installation step and Your help is appreicated.

image

1.)Clone a copy of "main" of "turbopilot" as item no. I shown in the above figure.

2.) I go for Option A: Download pre-quantized models and paste it to the models folder in main, i choose 6B ~4GB as item no.II and it looks like the same model in the example run command in step 4
image

3.) Download binary of TurboPilot Server and extract it to the root project folder.
image

4.) ./codegen-serve -t 6 -m ./models/codegen-6B-multi-ggml-4bit-quant.bin

I want to use it in VS Code with FauxPilot Plugin, also i am new to this too.
At the time of writing, it seems Venthe has accepted the PR so no need to install the "fauxpilot-1.1.5-ravenscroft.vsix" locally. Instead, i can download the plugin directly in vs code extension market.

  1. After install "fauxpilot Plug-in", Ctrl+Shift+P - Preferences: Open User Settings (JSON)
    image

================================= @ravenscroftj @
Q1: The suitable path of turbopilot-main ? Somewhere in Vscode folder such as installation path of fauxpilot?or Doesn't matter ?

Q2. Adminstrator mode of Cmd: execute step 4? Has to be the root project folder path?
image

image

Same go to Q3 where to call it?
C:\ A \ B \Downloads\TurbopilotALL\turbopilot-main\turbopilot-main

Q3. difficulties about the calling the API directly? I have no idea about these mysterious code or command. But i assume that it can be called in web browser URL and talks to the recipient in root project folder?

Running the requests in admin cmd http://localhost:18080/v1/engines/codegen/cohttp://localhost:18080/v1/engines/codegen/completions mpletions

Q4. Any confliction between other ai prompt offers similar feature or intelliSense that build in function in vs code?

Thanks

How to build for Mac OS Apple Silicon?

Hello, is there anyone who could help me build the Turbopilot binary for Mac OS running on Apple Silicon? I'm stuck on the cmake part. I don't know which arguments to pass to cmake and the BUILD.md isn't also clear.

Failed to load model wizardcoder (Illegal Instruction)

Hello,

I am unable to launch this with the wizard coder model. Dell R620 server with Dual E5-2637v2, 128GB RAM. Using the v0.2.0 AVX build.

`root@lab:~/copilot# ./turbopilot --debug --model-file ./models/WizardCoder-15B-1.0.ggmlv3.q4_0.bin
[2023-09-07 22:14:24.316] [debug] debug logging enabled
[2023-09-07 22:14:24.316] [info] Initializing GPT-J type model for 'codegen' model
[2023-09-07 22:14:24.316] [info] Attempt to load model from codegen
[2023-09-07 22:14:24.316] [info] load_model: loading model from './models/WizardCoder-15B-1.0.ggmlv3.q4_0.bin' - please wait ...

[2023-09-07 22:14:24.316] [info] load_model: n_vocab = 49153

[2023-09-07 22:14:24.316] [info] load_model: n_ctx = 8192

[2023-09-07 22:14:24.316] [info] load_model: n_embd = 6144

[2023-09-07 22:14:24.316] [info] load_model: n_head = 48

[2023-09-07 22:14:24.316] [info] load_model: n_layer = 40

[2023-09-07 22:14:24.316] [info] load_model: n_rot = 2002

[2023-09-07 22:14:24.316] [info] load_model: ftype = 49153

[2023-09-07 22:14:24.316] [info] load_model: qntvr = 49

[2023-09-07 22:14:24.316] [error] load_model: invalid model file './models/WizardCoder-15B-1.0.ggmlv3.q4_0.bin' (bad vocab size 13 != 49153)

[2023-09-07 22:14:24.316] [error] Failed to load model`

root@lab:~/copilot# ./turbopilot --debug --model-type wizardcoder --model-file ./models/WizardCoder-15B-1.0.ggmlv3.q4_0.bin
[2023-09-07 22:16:02.789] [debug] debug logging enabled
[2023-09-07 22:16:02.789] [info] Initializing Starcoder/Wizardcoder type model for 'wizardcoder' model type
[2023-09-07 22:16:02.789] [info] Attempt to load model from wizardcoder
load_model: loading model from './models/WizardCoder-15B-1.0.ggmlv3.q4_0.bin'
load_model: n_vocab = 49153
load_model: n_ctx = 8192
load_model: n_embd = 6144
load_model: n_head = 48
load_model: n_layer = 40
load_model: ftype = 2002
load_model: qntvr = 2
load_model: ggml ctx size = 25608.48 MB
Illegal instruction

Only huggingface client works, and crashes server

Awesome project!

I wanted to know which client is supported and which you personally use because of the 3 I could find references to, only the hugging face one seems to work.

My server version is master, built locally via the Dockerfile.cuda11 file.

Fauxpilot

settings.json

    "fauxpilot.server": "http://localhost:18080/v1/engines",
    "fauxpilot.enabled": true,

This results in the error described here of Error: Illegal argument: line must be non-negative.

official copilot plugin

Results in the behavior here of completions not showing up.

Huggingface plugin

Does work, however if you type too quickly, the server gets multiple requests and crashes with a Segmentation fault. If the server receives a request from the same user, it should stop processing the old one via some kind of cancellable task, if it doesn't already.

Is HF the only working client?

Binary for MacOS?

Is there a compiled binary for MacOS? Will this be supported on M1 Apple Silicon? Thanks!

Local build failing to run (NO AVX2)

Following the guide for locally building as my test system does not have AVX2 - I am using dual E5-2637v2's.

root@lab:~/turbopilot/build/ggml/build/bin# ./codegen-serve -t 16 /root/turbopilot/models/codegen-6B-multi-ggml-4bit-quant.bin
Illegal instruction

Is it possible to compile without the need for AVX2?

error with today's new PR

I just updated the latest submission code, compiled it again, and then something went wrong.
error: ggml_new_tensor_impl: not enough space in the context's memory pool (needed 322235776, available 268435456)

M1 macos 13.2

Releases v0.0.4 Work normally

terminated by signal SIGABRT (Abort)

I tried the small model, and after some typing, it crashes.

GGML_ASSERT: /home/runner/work/turbopilot/turbopilot/ggml/src/ggml.c:7931: ne02 == ne12
fish: Job 1, 'codegen-serve -m ./codegen-350M…' terminated by signal SIGABRT (Abort)

"symbol not found" error in docker image running under ARM64

I'm using the following docker-compose file on ARM Ubuntu 22.04 Oracle cloud, the models exist in the correct path but the container will not start. I think its similar to #20

docker-compose.yml:

version: '3.3'
services:
  ravenscroftj:
    image: 'ghcr.io/ravenscroftj/turbopilot:latest'
    environment:
        - THREADS=4
        - MODEL_TYPE=stablecode
        - MODEL=/models/stablecode-instruct-alpha-3b.ggmlv1.q4_0.bin
    volumes:
        - '/home/ubuntu/appdata/turbopilot/models:/models'
    ports:
        - '18080:18080'

Logs:

Error loading shared library libstdc++.so.6: No such file or directory (needed by /app/turbopilot)
Error loading shared library libgcc_s.so.1: No such file or directory (needed by /app/turbopilot)
Error relocating /app/turbopilot: _ZNSo9_M_insertImEERSoT_: symbol not found
Error relocating /app/turbopilot: _ZNSt9basic_iosIcSt11char_traitsIcEE4initEPSt15basic_streambufIcS1_E: symbol not found
Error relocating /app/turbopilot: _ZNSt11logic_errorC1EPKc: symbol not found
Error relocating /app/turbopilot: _ZNSt9basic_iosIcSt11char_traitsIcEE5imbueERKSt6locale: symbol not found
Error relocating /app/turbopilot: _ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm: symbol not found
Error relocating /app/turbopilot: _ZNSt3_V214error_categoryD2Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt11range_errorC1EPKc: symbol not found
Error relocating /app/turbopilot: _ZNKSt5ctypeIcE13_M_widen_initEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt8__detail20_Prime_rehash_policy11_M_next_bktEm: symbol not found
Error relocating /app/turbopilot: _ZNSt6thread4joinEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt6localeeqERKS_: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE14_M_replace_auxEmmmc: symbol not found
Error relocating /app/turbopilot: _ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base: symbol not found
Error relocating /app/turbopilot: _ZNSo6sentryD1Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt8ios_baseD2Ev: symbol not found
Error relocating /app/turbopilot: _Znam: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6insertEmPKc: symbol not found
Error relocating /app/turbopilot: _ZNSt11logic_errorC2EPKc: symbol not found
Error relocating /app/turbopilot: _ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base: symbol not found
Error relocating /app/turbopilot: _ZNSt15basic_streambufIcSt11char_traitsIcEE5uflowEv: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE7_M_syncEPcmm: symbol not found
Error relocating /app/turbopilot: __cxa_end_catch: symbol not found
Error relocating /app/turbopilot: _ZNSi4readEPcl: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt18condition_variable10notify_allEv: symbol not found
Error relocating /app/turbopilot: __cxa_allocate_exception: symbol not found
Error relocating /app/turbopilot: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm: symbol not found
Error relocating /app/turbopilot: _ZNSt15__exception_ptr13exception_ptrC1EPv: symbol not found
Error relocating /app/turbopilot: _ZSt18_Rb_tree_incrementPKSt18_Rb_tree_node_base: symbol not found
Error relocating /app/turbopilot: _ZNSt9bad_allocD1Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt28__atomic_futex_unsigned_base19_M_futex_notify_allEPj: symbol not found
Error relocating /app/turbopilot: __trunctfdf2: symbol not found
Error relocating /app/turbopilot: _ZNSt16invalid_argumentC1EPKc: symbol not found
Error relocating /app/turbopilot: _ZNSt8ios_baseC2Ev: symbol not found
Error relocating /app/turbopilot: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc: symbol not found
Error relocating /app/turbopilot: _ZNSt6localeC1Ev: symbol not found
Error relocating /app/turbopilot: _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc: symbol not found
Error relocating /app/turbopilot: _ZNSt12out_of_rangeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: symbol not found
Error relocating /app/turbopilot: _ZNKSt8__detail20_Prime_rehash_policy14_M_need_rehashEmmm: symbol not found
Error relocating /app/turbopilot: _ZNSt13basic_filebufIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev: symbol not found
Error relocating /app/turbopilot: _ZNSo9_M_insertIdEERSoT_: symbol not found
Error relocating /app/turbopilot: _ZSt17rethrow_exceptionNSt15__exception_ptr13exception_ptrE: symbol not found
Error relocating /app/turbopilot: _ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev: symbol not found
Error relocating /app/turbopilot: __letf2: symbol not found
Error relocating /app/turbopilot: _ZNSt15basic_streambufIcSt11char_traitsIcEE6xsputnEPKcl: symbol not found
Error relocating /app/turbopilot: __cxa_guard_release: symbol not found
Error relocating /app/turbopilot: _ZNSt3_V216generic_categoryEv: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc: symbol not found
Error relocating /app/turbopilot: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12find_last_ofEPKcmm: symbol not found
Error relocating /app/turbopilot: _ZSt19__throw_regex_errorNSt15regex_constants10error_typeE: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6insertEmmc: symbol not found
Error relocating /app/turbopilot: _ZNSo5flushEv: symbol not found
Error relocating /app/turbopilot: _ZNSt13__future_base12_Result_baseD2Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt15basic_streambufIcSt11char_traitsIcEE4syncEv: symbol not found
Error relocating /app/turbopilot: _ZNSt15__exception_ptr13exception_ptr9_M_addrefEv: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_eraseEmm: symbol not found
Error relocating /app/turbopilot: _ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv: symbol not found
Error relocating /app/turbopilot: _ZNSt11logic_errorC2ERKS_: symbol not found
Error relocating /app/turbopilot: _ZNSo3putEc: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE9underflowEv: symbol not found
Error relocating /app/turbopilot: _ZNSo9_M_insertIPKvEERSoT_: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_: symbol not found
Error relocating /app/turbopilot: _ZNSt13__future_base12_Result_baseC2Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt11logic_errorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: symbol not found
Error relocating /app/turbopilot: _ZNSt13basic_filebufIcSt11char_traitsIcEE5closeEv: symbol not found
Error relocating /app/turbopilot: _ZNSt18condition_variableD1Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt13runtime_errorC2EPKc: symbol not found
Error relocating /app/turbopilot: __cxa_bad_cast: symbol not found
Error relocating /app/turbopilot: _ZNSt13basic_filebufIcSt11char_traitsIcEED1Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm: symbol not found
Error relocating /app/turbopilot: _ZSt25__throw_bad_function_callv: symbol not found
Error relocating /app/turbopilot: __udivti3: symbol not found
Error relocating /app/turbopilot: _ZNSt9bad_allocD2Ev: symbol not found
Error relocating /app/turbopilot: __getf2: symbol not found
Error relocating /app/turbopilot: __dynamic_cast: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEmmPKcm: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_: symbol not found
Error relocating /app/turbopilot: _ZSt16__throw_bad_castv: symbol not found
Error relocating /app/turbopilot: __trunctfsf2: symbol not found
Error relocating /app/turbopilot: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13find_first_ofEPKcmm: symbol not found
Error relocating /app/turbopilot: _ZNSt6locale7classicEv: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm: symbol not found
Error relocating /app/turbopilot: _ZNSt13runtime_errorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: symbol not found
Error relocating /app/turbopilot: _ZNSo6sentryC1ERSo: symbol not found
Error relocating /app/turbopilot: _ZNSt8bad_castD2Ev: symbol not found
Error relocating /app/turbopilot: _ZNSi10_M_extractIlEERSiRT_: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm: symbol not found
Error relocating /app/turbopilot: _ZdaPv: symbol not found
Error relocating /app/turbopilot: _ZNSt6thread15_M_start_threadESt10unique_ptrINS_6_StateESt14default_deleteIS1_EEPFvvE: symbol not found
Error relocating /app/turbopilot: _ZNSt13runtime_errorD1Ev: symbol not found
Error relocating /app/turbopilot: _ZSt9use_facetISt5ctypeIcEERKT_RKSt6locale: symbol not found
Error relocating /app/turbopilot: _ZNSt18condition_variable10notify_oneEv: symbol not found
Error relocating /app/turbopilot: __cxa_init_primary_exception: symbol not found
Error relocating /app/turbopilot: _ZNSt13runtime_errorC1EPKc: symbol not found
Error relocating /app/turbopilot: _ZNKSt13runtime_error4whatEv: symbol not found
Error relocating /app/turbopilot: __gxx_personality_v0: symbol not found
Error relocating /app/turbopilot: _ZNSt6localeC1ERKS_: symbol not found
Error relocating /app/turbopilot: _ZNSt11logic_errorD2Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate: symbol not found
Error relocating /app/turbopilot: _ZNSt15basic_streambufIcSt11char_traitsIcEE6xsgetnEPcl: symbol not found
Error relocating /app/turbopilot: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE8overflowEi: symbol not found
Error relocating /app/turbopilot: _ZSt28_Rb_tree_rebalance_for_erasePSt18_Rb_tree_node_baseRS_: symbol not found
Error relocating /app/turbopilot: _ZSt17current_exceptionv: symbol not found
Error relocating /app/turbopilot: __cxa_begin_catch: symbol not found
Error relocating /app/turbopilot: _ZNKSt6locale2id5_M_idEv: symbol not found
Error relocating /app/turbopilot: __cxa_rethrow: symbol not found
Error relocating /app/turbopilot: __cxa_throw: symbol not found
Error relocating /app/turbopilot: _ZNSt6localeD1Ev: symbol not found
Error relocating /app/turbopilot: __gttf2: symbol not found
Error relocating /app/turbopilot: _ZSt28__throw_bad_array_new_lengthv: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE9pbackfailEi: symbol not found
Error relocating /app/turbopilot: _ZNSt15__exception_ptr13exception_ptr10_M_releaseEv: symbol not found
Error relocating /app/turbopilot: _ZSt20__throw_system_errori: symbol not found
Error relocating /app/turbopilot: _ZNSt8ios_base4InitC1Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt12future_errorD1Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt13runtime_errorC2ERKS_: symbol not found
Error relocating /app/turbopilot: _ZNSo9_M_insertIbEERSoT_: symbol not found
Error relocating /app/turbopilot: _ZNSt9exceptionD2Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4swapERS4_: symbol not found
Error relocating /app/turbopilot: _ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: symbol not found
Error relocating /app/turbopilot: _ZNSt13basic_filebufIcSt11char_traitsIcEEC1Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt15basic_streambufIcSt11char_traitsIcEE5imbueERKSt6locale: symbol not found
Error relocating /app/turbopilot: _Znwm: symbol not found
Error relocating /app/turbopilot: _ZNSt12__basic_fileIcED1Ev: symbol not found
Error relocating /app/turbopilot: _ZSt11_Hash_bytesPKvmm: symbol not found
Error relocating /app/turbopilot: _ZNSt11logic_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: symbol not found
Error relocating /app/turbopilot: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm: symbol not found
Error relocating /app/turbopilot: _ZSt9use_facetINSt7__cxx117collateIcEEERKT_RKSt6locale: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc: symbol not found
Error relocating /app/turbopilot: _ZNSt8__detail15_List_node_base11_M_transferEPS0_S1_: symbol not found
Error relocating /app/turbopilot: _ZSt24__throw_out_of_range_fmtPKcz: symbol not found
Error relocating /app/turbopilot: _ZNSt6thread20hardware_concurrencyEv: symbol not found
Error relocating /app/turbopilot: _ZNSt6chrono3_V212system_clock3nowEv: symbol not found
Error relocating /app/turbopilot: _ZdaPvm: symbol not found
Error relocating /app/turbopilot: _ZNSt6chrono3_V212steady_clock3nowEv: symbol not found
Error relocating /app/turbopilot: __cxa_guard_abort: symbol not found
Error relocating /app/turbopilot: __unordtf2: symbol not found
Error relocating /app/turbopilot: _ZNKSt3_V214error_category10_M_messageB5cxx11Ei: symbol not found
Error relocating /app/turbopilot: _ZNSt11logic_errorD1Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt6thread6_StateD2Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt8__detail15_List_node_base7_M_hookEPS0_: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev: symbol not found
Error relocating /app/turbopilot: _ZdlPvm: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc: symbol not found
Error relocating /app/turbopilot: _ZSt20__throw_future_errori: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm: symbol not found
Error relocating /app/turbopilot: _ZNKSt11logic_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNSt18condition_variableC1Ev: symbol not found
Error relocating /app/turbopilot: _ZSt20__throw_length_errorPKc: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev: symbol not found
Error relocating /app/turbopilot: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmRKS4_: symbol not found
Error relocating /app/turbopilot: _ZNSolsEi: symbol not found
Error relocating /app/turbopilot: _ZSt15future_categoryv: symbol not found
Error relocating /app/turbopilot: _Unwind_Resume: symbol not found
Error relocating /app/turbopilot: _ZSt9terminatev: symbol not found
Error relocating /app/turbopilot: _ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE9showmanycEv: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt12out_of_rangeD2Ev: symbol not found
Error relocating /app/turbopilot: _ZSt17__throw_bad_allocv: symbol not found
Error relocating /app/turbopilot: _ZSt18uncaught_exceptionv: symbol not found
Error relocating /app/turbopilot: _ZNSt6localeaSERKS_: symbol not found
Error relocating /app/turbopilot: _ZNSt13runtime_errorD2Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt3_V215system_categoryEv: symbol not found
Error relocating /app/turbopilot: _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c: symbol not found
Error relocating /app/turbopilot: _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l: symbol not found
Error relocating /app/turbopilot: __cxa_free_exception: symbol not found
Error relocating /app/turbopilot: _ZSt9use_facetINSt7__cxx118numpunctIcEEERKT_RKSt6locale: symbol not found
Error relocating /app/turbopilot: __cxa_guard_acquire: symbol not found
Error relocating /app/turbopilot: _ZSt19__throw_logic_errorPKc: symbol not found
Error relocating /app/turbopilot: _ZNKSt9bad_alloc4whatEv: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTISt13runtime_error: symbol not found
Error relocating /app/turbopilot: _ZTISt13runtime_error: symbol not found
Error relocating /app/turbopilot: _ZTISt13runtime_error: symbol not found
Error relocating /app/turbopilot: _ZTISt13runtime_error: symbol not found
Error relocating /app/turbopilot: _ZTISt13runtime_error: symbol not found
Error relocating /app/turbopilot: _ZTISt13runtime_error: symbol not found
Error relocating /app/turbopilot: _ZTISt9exception: symbol not found
Error relocating /app/turbopilot: _ZTISt9exception: symbol not found
Error relocating /app/turbopilot: _ZTISt9exception: symbol not found
Error relocating /app/turbopilot: _ZTISt9exception: symbol not found
Error relocating /app/turbopilot: _ZTINSt3_V214error_categoryE: symbol not found
Error relocating /app/turbopilot: _ZTINSt3_V214error_categoryE: symbol not found
Error relocating /app/turbopilot: _ZTISt8bad_cast: symbol not found
Error relocating /app/turbopilot: _ZTISt8bad_cast: symbol not found
Error relocating /app/turbopilot: _ZTISt8bad_cast: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
Error relocating /app/turbopilot: _ZTISt11logic_error: symbol not found
Error relocating /app/turbopilot: _ZTISt11logic_error: symbol not found
Error relocating /app/turbopilot: _ZTISt11logic_error: symbol not found
Error relocating /app/turbopilot: _ZTISt11logic_error: symbol not found
Error relocating /app/turbopilot: _ZTISt12out_of_range: symbol not found
Error relocating /app/turbopilot: _ZTISt12out_of_range: symbol not found
Error relocating /app/turbopilot: _ZTISt12out_of_range: symbol not found
Error relocating /app/turbopilot: _ZTINSt13__future_base12_Result_baseE: symbol not found
Error relocating /app/turbopilot: _ZTISt9bad_alloc: symbol not found
Error relocating /app/turbopilot: _ZTINSt6thread6_StateE: symbol not found
Error relocating /app/turbopilot: _ZTINSt6thread6_StateE: symbol not found
Error relocating /app/turbopilot: _ZTINSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE: symbol not found
Error relocating /app/turbopilot: _ZNKSt13runtime_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt13runtime_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt13runtime_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt13runtime_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt13runtime_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt13runtime_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt3_V214error_category10_M_messageB5cxx11Ei: symbol not found
Error relocating /app/turbopilot: _ZNKSt11logic_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt11logic_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt11logic_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt11logic_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt11logic_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt11logic_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt11logic_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt11logic_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt11logic_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt11logic_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt11logic_error4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNKSt9bad_alloc4whatEv: symbol not found
Error relocating /app/turbopilot: _ZNSt15basic_streambufIcSt11char_traitsIcEE5imbueERKSt6locale: symbol not found
Error relocating /app/turbopilot: _ZNSt15basic_streambufIcSt11char_traitsIcEE5imbueERKSt6locale: symbol not found
Error relocating /app/turbopilot: _ZNSt15basic_streambufIcSt11char_traitsIcEE4syncEv: symbol not found
Error relocating /app/turbopilot: _ZNSt15basic_streambufIcSt11char_traitsIcEE4syncEv: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE9showmanycEv: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE9showmanycEv: symbol not found
Error relocating /app/turbopilot: _ZNSt15basic_streambufIcSt11char_traitsIcEE6xsgetnEPcl: symbol not found
Error relocating /app/turbopilot: _ZNSt15basic_streambufIcSt11char_traitsIcEE6xsgetnEPcl: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE9underflowEv: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE9underflowEv: symbol not found
Error relocating /app/turbopilot: _ZNSt15basic_streambufIcSt11char_traitsIcEE5uflowEv: symbol not found
Error relocating /app/turbopilot: _ZNSt15basic_streambufIcSt11char_traitsIcEE5uflowEv: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE9pbackfailEi: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE9pbackfailEi: symbol not found
Error relocating /app/turbopilot: _ZNSt15basic_streambufIcSt11char_traitsIcEE6xsputnEPKcl: symbol not found
Error relocating /app/turbopilot: _ZNSt15basic_streambufIcSt11char_traitsIcEE6xsputnEPKcl: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE8overflowEi: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE8overflowEi: symbol not found
Error relocating /app/turbopilot: __once_proxy: symbol not found
Error relocating /app/turbopilot: _ZNSt6thread4joinEv: symbol not found
Error relocating /app/turbopilot: _ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE: symbol not found
Error relocating /app/turbopilot: _ZTISt11range_error: symbol not found
Error relocating /app/turbopilot: _ZNSt16invalid_argumentD1Ev: symbol not found
Error relocating /app/turbopilot: _ZTISt12future_error: symbol not found
Error relocating /app/turbopilot: _ZTVNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE: symbol not found
Error relocating /app/turbopilot: _ZSt4cout: symbol not found
Error relocating /app/turbopilot: _ZTVSt9basic_iosIcSt11char_traitsIcEE: symbol not found
Error relocating /app/turbopilot: _ZTVSt12future_error: symbol not found
Error relocating /app/turbopilot: _ZTIv: symbol not found
Error relocating /app/turbopilot: _ZTIl: symbol not found
Error relocating /app/turbopilot: _ZTIb: symbol not found
Error relocating /app/turbopilot: _ZNSt8ios_base4InitD1Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev: symbol not found
Error relocating /app/turbopilot: _ZTVSt15basic_streambufIcSt11char_traitsIcEE: symbol not found
Error relocating /app/turbopilot: _ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE: symbol not found
Error relocating /app/turbopilot: _ZSt4cerr: symbol not found
Error relocating /app/turbopilot: _ZTISt11regex_error: symbol not found
Error relocating /app/turbopilot: _ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE: symbol not found
Error relocating /app/turbopilot: _ZTISt5ctypeIcE: symbol not found
Error relocating /app/turbopilot: _ZNSt13runtime_errorD1Ev: symbol not found
Error relocating /app/turbopilot: _ZTVSt14basic_ifstreamIcSt11char_traitsIcEE: symbol not found
Error relocating /app/turbopilot: _ZNSt11regex_errorD1Ev: symbol not found
Error relocating /app/turbopilot: _ZNSt5ctypeIcE2idE: symbol not found
Error relocating /app/turbopilot: _ZTVSt9bad_alloc: symbol not found
Error relocating /app/turbopilot: _ZTVNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE: symbol not found
Error relocating /app/turbopilot: _ZTINSt6locale5facetE: symbol not found
Error relocating /app/turbopilot: _ZTIi: symbol not found
Error relocating /app/turbopilot: _ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE: symbol not found
Error relocating /app/turbopilot: _ZTVSo: symbol not found
Error relocating /app/turbopilot: _ZSt11__once_call: symbol not found
Error relocating /app/turbopilot: _ZNSt11range_errorD1Ev: symbol not found
Error relocating /app/turbopilot: _ZTTSt14basic_ifstreamIcSt11char_traitsIcEE: symbol not found
Error relocating /app/turbopilot: _ZNSt11logic_errorD1Ev: symbol not found
Error relocating /app/turbopilot: _ZTVSt13basic_filebufIcSt11char_traitsIcEE: symbol not found
Error relocating /app/turbopilot: _ZTVNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE: symbol not found
Error relocating /app/turbopilot: _ZSt15__once_callable: symbol not found
Error relocating /app/turbopilot: _ZTVSt11regex_error: symbol not found
Error relocating /app/turbopilot: _ZTISt16invalid_argument: symbol not found
Error relocating /app/turbopilot: _ZTIN10__cxxabiv115__forced_unwindE: symbol not found
Error relocating /app/turbopilot: _ZTINSt8ios_base7failureB5cxx11E: symbol not found
Error relocating /app/turbopilot: _ZTISt12system_error: symbol not found
Error relocating /app/turbopilot: __gxx_personality_v0: symbol not found

Docker Image Fail to load model

stablecode.bin => TheBloke/stablecode-instruct-alpha-3b-GGML from the model.md

.
β”œβ”€β”€ models
β”‚ β”œβ”€β”€ readme.txt
β”‚ └── stablecode.bin

image

Hardware
Amd r5 7600x , 32gb ram
Rtx 3060 12Gb CUDA 12.2
Windows 11
On docker

Cannot convert bigger models

Hello,
I wanted to try the bigger models, but these come in several .bin files. When I launch the converter python script I get that it cannot find python_model.bin (since there are 4 pytorch_model-0000x-of-00004.bin).
Do I have to merge them using cat *.bin > pytorch_model.bin (ensuring there is no other bin file in the directory obviously) ?

Build issues on Mac

When building on mac, it is not possible to use cmake -D CMAKE_EXE_LINKER_FLAGS="-static" ..
As it returns:

ld: library not found for -lcrt0.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [bin/codegen] Error 1
make[2]: *** [examples/codegen/CMakeFiles/codegen.dir/all] Error 2
make[1]: *** [examples/codegen

Instead, we need to use cmake ..

Furthermore, I needed to amend the file ggml/examples/codegen/CMakeLists.txt to explicitly find the boost headers, with:

find_package(Boost REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})

Finally, I had to change a few lines in ggml/examples/codegen/serve.cpp to stop further build errors:

Line 54: crow::json::wvalue response = {{"token","1"}, {"expires_at", 2600000000}, {"refresh_in",900}}; had to change to:
crow::json::wvalue response = {{"token","1"}, {"expires_at", static_cast<std::uint64_t>(2600000000)}, {"refresh_in",900}};

Line 191: {"logprobs", NULL} had to change to: {"logprobs", nullptr}

Line 198: {"prompt_tokens", embd_inp.size()}, had to change to: {"prompt_tokens", static_cast<std::uint64_t>(embd_inp.size())},

Line 199: {"total_tokens", n_past + embd_inp.size()} had to change to: {"total_tokens", static_cast<std::uint64_t>(n_past + embd_inp.size())}

Line 206: {"created", std::time(NULL)}, had to change to: {"created", static_cast<std::int64_t>(std::time(nullptr))},

After all of these changes, I was finally able to get this tool working. I've opened a PR with the fixes I made:
ravenscroftj/ggml#1

Fail to use it locally

After following all the steps the document u write, I found it has error in login to "http://0.0.0.0:18080/v1/engines/codegen/completions", it returns 405 error.
ζˆͺ屏2023-04-17 12 18 30
And I found the terminal return the following sentences, but I cannot receive any response in VScode or my host domain.TT(I'm a student who is poor in English , maybe I misunderstood ur words)
ζˆͺ屏2023-04-17 12 18 30
ζˆͺ屏2023-04-17 12 18 11
Your reply wil be sincerely appreciated!

Not getting any predictions - but posting to turbopilot..........

Running the latest code for turbopilot. Running the extension (fauxpilot) v1.1.4. I've tried earlier versions too...

It runs:
image

I see POST requests:
image

I see the calls in VSC:
image

But I don't get any prediction as per the project's .gif image.... πŸ—‘οΈ
Am I missing something?

My settings:
image

image

"symbol not found" error in docker image running under WSL2

I'm using the following docker-compose file on Docker for Desktop (WSL2), the models exist in the correct path but the container will not start.

docker-compose.yml

volumes:
  turbopilot_data:
    external: true

services:
  postgres:
    container_name: turbopilot
    image: ghcr.io/ravenscroftj/turbopilot:latest
    environment:
      - MODEL=/models/codegen-6B-multi-ggml-4bit-quant.bin
      - THREADS=6
    ports:
      - 18080:18080/tcp
    volumes:
      - turbopilot_data:/models
2023-04-25 13:56:08 Error loading shared library libstdc++.so.6: No such file or directory (needed by /app/codegen-serve)
2023-04-25 13:56:08 Error loading shared library libgcc_s.so.1: No such file or directory (needed by /app/codegen-serve)
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSo9_M_insertImEERSoT_: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt9basic_iosIcSt11char_traitsIcEE4initEPSt15basic_streambufIcS1_E: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt11logic_errorC1EPKc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt9basic_iosIcSt11char_traitsIcEE5imbueERKSt6locale: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt3_V214error_categoryD2Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt5ctypeIcE13_M_widen_initEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt8__detail20_Prime_rehash_policy11_M_next_bktEm: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt6localeeqERKS_: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE14_M_replace_auxEmmmc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZdlPv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSo6sentryD1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt8ios_baseD2Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _Znam: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6insertEmPKc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt11logic_errorC2EPKc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE7_M_syncEPcmm: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: __cxa_end_catch: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSi4readEPcl: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt18condition_variable10notify_allEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: __cxa_allocate_exception: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15__exception_ptr13exception_ptrC1EPv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt18_Rb_tree_incrementPKSt18_Rb_tree_node_base: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt9bad_allocD1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt28__atomic_futex_unsigned_base19_M_futex_notify_allEPj: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt8ios_baseC2Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt6localeC1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt12out_of_rangeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt8__detail20_Prime_rehash_policy14_M_need_rehashEmmm: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt13basic_filebufIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSo9_M_insertIdEERSoT_: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt17rethrow_exceptionNSt15__exception_ptr13exception_ptrE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: __cxa_guard_release: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt3_V216generic_categoryEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12find_last_ofEPKcmm: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSi3getEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt19__throw_regex_errorNSt15regex_constants10error_typeE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSo5flushEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt13__future_base12_Result_baseD2Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt20__throw_out_of_rangePKc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15__exception_ptr13exception_ptr9_M_addrefEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_eraseEmm: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt11logic_errorC2ERKS_: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSo3putEc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSo9_M_insertIPKvEERSoT_: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt13__future_base12_Result_baseC2Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt11logic_errorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt13basic_filebufIcSt11char_traitsIcEE5closeEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt18condition_variableD1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt13runtime_errorC2EPKc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: __cxa_bad_cast: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt13basic_filebufIcSt11char_traitsIcEED1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt25__throw_bad_function_callv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt9bad_allocD2Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: __dynamic_cast: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEmmPKcm: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt16__throw_bad_castv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSi10_M_extractIdEERSiRT_: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt6locale7classicEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt13runtime_errorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSo6sentryC1ERSo: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt8bad_castD2Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSi10_M_extractIlEERSiRT_: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZdaPv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt6thread15_M_start_threadESt10unique_ptrINS_6_StateESt14default_deleteIS1_EEPFvvE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt9use_facetISt5ctypeIcEERKT_RKSt6locale: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: __cxa_init_primary_exception: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt13runtime_errorC1EPKc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt6localeC1ERKS_: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt11logic_errorD2Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt28_Rb_tree_rebalance_for_erasePSt18_Rb_tree_node_baseRS_: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt17current_exceptionv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: __cxa_begin_catch: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt6locale2id5_M_idEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: __cxa_rethrow: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: __cxa_throw: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt6localeD1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt28__throw_bad_array_new_lengthv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15__exception_ptr13exception_ptr10_M_releaseEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt20__throw_system_errori: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt8ios_base4InitC1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt12future_errorD1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt13runtime_errorC2ERKS_: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSo9_M_insertIbEERSoT_: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt9exceptionD2Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4swapERS4_: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt13basic_filebufIcSt11char_traitsIcEEC1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _Znwm: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt12__basic_fileIcED1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt11_Hash_bytesPKvmm: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt9use_facetINSt7__cxx117collateIcEEERKT_RKSt6locale: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt24__throw_out_of_range_fmtPKcz: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt6thread20hardware_concurrencyEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt6chrono3_V212steady_clock3nowEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: __cxa_guard_abort: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt11logic_errorD1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt6thread6_StateD2Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt20__throw_future_errori: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt24__throw_invalid_argumentPKc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt18condition_variableC1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt20__throw_length_errorPKc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmRKS4_: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSolsEi: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt15future_categoryv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _Unwind_Resume: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt9terminatev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt12out_of_rangeD2Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt17__throw_bad_allocv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt18uncaught_exceptionv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt6localeaSERKS_: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt13runtime_errorD2Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt3_V215system_categoryEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: __cxa_free_exception: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt9use_facetINSt7__cxx118numpunctIcEEERKT_RKSt6locale: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: __cxa_guard_acquire: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt19__throw_logic_errorPKc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv120__si_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt9exception: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt9exception: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt9exception: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVN10__cxxabiv121__vmi_class_type_infoE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt11logic_error: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt11logic_error: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt11logic_error: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt12out_of_range: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt12out_of_range: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt12out_of_range: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt8bad_cast: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt8bad_cast: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTINSt13__future_base12_Result_baseE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt9bad_alloc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTINSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTINSt6thread6_StateE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTINSt6thread6_StateE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt15basic_streambufIcSt11char_traitsIcEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt3_V214error_category10_M_messageB5cxx11Ei: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt13runtime_error4whatEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt13runtime_error4whatEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt13runtime_error4whatEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt13runtime_error4whatEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt13runtime_error4whatEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt11logic_error4whatEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt11logic_error4whatEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt11logic_error4whatEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt11logic_error4whatEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt11logic_error4whatEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt11logic_error4whatEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt11logic_error4whatEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt11logic_error4whatEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt11logic_error4whatEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt11logic_error4whatEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt11logic_error4whatEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNKSt9bad_alloc4whatEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE5imbueERKSt6locale: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE5imbueERKSt6locale: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE5imbueERKSt6locale: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE4syncEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE4syncEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE4syncEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE9showmanycEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE9showmanycEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE6xsgetnEPcl: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE6xsgetnEPcl: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE6xsgetnEPcl: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE9underflowEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE9underflowEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE5uflowEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE5uflowEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE5uflowEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE9pbackfailEi: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE9pbackfailEi: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE6xsputnEPKcl: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE6xsputnEPKcl: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE6xsputnEPKcl: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE8overflowEi: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE8overflowEi: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE9showmanycEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE9underflowEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE9pbackfailEi: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt15basic_streambufIcSt11char_traitsIcEE8overflowEi: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: __once_proxy: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt6thread4joinEv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt8ios_base4InitD1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt13runtime_errorD1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt11regex_errorD1Ev: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt11__once_call: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt15__once_callable: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTIN10__cxxabiv115__forced_unwindE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTINSt8ios_base7failureB5cxx11E: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt12system_error: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: __gxx_personality_v0: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTINSt3_V214error_categoryE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt12future_error: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVSt9basic_iosIcSt11char_traitsIcEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVSt12future_error: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTIv: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTIl: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTId: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVSt15basic_streambufIcSt11char_traitsIcEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt13runtime_error: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt11regex_error: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTISt5ctypeIcE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVSt14basic_ifstreamIcSt11char_traitsIcEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVSt9bad_alloc: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVSi: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTINSt6locale5facetE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVSo: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTTSt14basic_ifstreamIcSt11char_traitsIcEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVSt13basic_filebufIcSt11char_traitsIcEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZTVSt11regex_error: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZSt4cerr: symbol not found
2023-04-25 13:56:08 Error relocating /app/codegen-serve: _ZNSt5ctypeIcE2idE: symbol not found

Downloading and running the binary manually inside WSL2 (Debian) using the same model loads without a problem.

ggml_new_tensor_impl: not enough space in the context's memory pool

I tried writing a few lines of code. I got my first completion working properly.

# Function that prints hello world
def hello_world():
    print('Hello World!')

hello_world()

But when I started adding more code, I got an error from Turbopilot saying the following:

(turbopilot-test) mbonon@mbonon-tm01926-mbp turbopilot-test % ./turbopilot-bin -m stablecode -f ./models/stablecode-instruct-alpha-3b.ggmlv1.q8_0.bin
[2023-08-13 14:14:20.759] [info] Initializing StableLM type model for 'stablecode' model type
[2023-08-13 14:14:20.760] [info] Attempt to load model from stablecode
load_model: loading model from './models/stablecode-instruct-alpha-3b.ggmlv1.q8_0.bin' - please wait ...
load_model: n_vocab = 49152
load_model: n_ctx   = 4096
load_model: n_embd  = 2560
load_model: n_head  = 32
load_model: n_layer = 32
load_model: n_rot   = 20
load_model: par_res = 1
load_model: ftype   = 2007
load_model: qntvr   = 2
load_model: ggml ctx size = 6169.28 MB
load_model: memory_size =  1280.00 MB, n_mem = 131072
load_model: ................................................ done
load_model: model size =  2809.08 MB / num tensors = 388
[2023-08-13 14:14:22.712] [info] Loaded model in 1951.30ms
(2023-08-13 06:14:22) [INFO    ] Crow/1.0 server is running at http://0.0.0.0:18080 using 8 threads
(2023-08-13 06:14:22) [INFO    ] Call `app.loglevel(crow::LogLevel::Warning)` to hide Info level logs.
(2023-08-13 06:19:29) [INFO    ] Request: 127.0.0.1:52574 0x105008200 HTTP/1.1 POST /v1/engines/codegen/completions
(2023-08-13 06:19:31) [INFO    ] Response: 0x105008200 /v1/engines/codegen/completions 200 1
(2023-08-13 06:19:31) [INFO    ] Request: 127.0.0.1:52575 0x131813a00 HTTP/1.1 POST /v1/engines/codegen/completions
(2023-08-13 06:19:32) [INFO    ] Response: 0x131813a00 /v1/engines/codegen/completions 200 1
(2023-08-13 06:19:36) [INFO    ] Request: 127.0.0.1:52577 0x13200fa00 HTTP/1.1 POST /v1/engines/codegen/completions
(2023-08-13 06:19:37) [INFO    ] Response: 0x13200fa00 /v1/engines/codegen/completions 200 1
(2023-08-13 06:19:37) [INFO    ] Request: 127.0.0.1:52578 0x131813a00 HTTP/1.1 POST /v1/engines/codegen/completions
(2023-08-13 06:19:38) [INFO    ] Response: 0x131813a00 /v1/engines/codegen/completions 200 1
(2023-08-13 06:19:43) [INFO    ] Request: 127.0.0.1:52581 0x13180e000 HTTP/1.1 POST /v1/engines/codegen/completions
(2023-08-13 06:19:46) [INFO    ] Response: 0x13180e000 /v1/engines/codegen/completions 200 1
(2023-08-13 06:19:47) [INFO    ] Request: 127.0.0.1:52582 0x13200fa00 HTTP/1.1 POST /v1/engines/codegen/completions
(2023-08-13 06:19:48) [INFO    ] Response: 0x13200fa00 /v1/engines/codegen/completions 200 1
(2023-08-13 06:19:49) [INFO    ] Request: 127.0.0.1:52583 0x132009200 HTTP/1.1 POST /v1/engines/codegen/completions
(2023-08-13 06:19:50) [INFO    ] Response: 0x132009200 /v1/engines/codegen/completions 200 1
(2023-08-13 06:19:50) [INFO    ] Request: 127.0.0.1:52584 0x125809000 HTTP/1.1 POST /v1/engines/codegen/completions
(2023-08-13 06:19:54) [INFO    ] Response: 0x125809000 /v1/engines/codegen/completions 200 1
(2023-08-13 06:19:54) [INFO    ] Request: 127.0.0.1:52586 0x13180e000 HTTP/1.1 POST /v1/engines/codegen/completions
(2023-08-13 06:19:56) [INFO    ] Response: 0x13180e000 /v1/engines/codegen/completions 200 1
(2023-08-13 06:19:56) [INFO    ] Request: 127.0.0.1:52588 0x131814200 HTTP/1.1 POST /v1/engines/codegen/completions
(2023-08-13 06:19:58) [INFO    ] Response: 0x131814200 /v1/engines/codegen/completions 200 1
(2023-08-13 06:19:58) [INFO    ] Request: 127.0.0.1:52589 0x125809000 HTTP/1.1 POST /v1/engines/codegen/completions
ggml_new_tensor_impl: not enough space in the context's memory pool (needed 510492368, available 268435456)
GGML_ASSERT: /Users/mbonon/coding/turbopilot-test/turbopilot/extern/ggml/src/ggml.c:16810: buf
zsh: abort      ./turbopilot-bin -m stablecode -f 

I'm running on a MacBook Pro with Apple M1 Pro chip and 16 GB of memory.

Need Elixir Language Support

Hi @ravenscroftj

I'm a complete newbie to this, and I would love to add Elixir lang support to this. How can we go about this?

I'm ready to dedicate all my free time to this!

docker turbopilot:v0.1.0-cuda12 not using gpu

docker run --gpus=all --rm -it \
  -v /home/ubuntu/LLM-Models:/models \
  -e MODEL_TYPE=wizardcoder \
  -e MODEL="/models/coding-WizardCoder-15B-1.0.GGMLv3.q8_0/WizardCoder-15B-1.0.ggmlv3.q8_0.bin" \
  -p 18080:18080 \
  ghcr.io/ravenscroftj/turbopilot:v0.1.0-cuda12

[2023-08-14 00:09:17.888] [info] Initializing Starcoder/Wizardcoder type model for 'wizardcoder' model type
[2023-08-14 00:09:17.888] [info] Attempt to load model from wizardcoder
load_model: loading model from '/models/coding-WizardCoder-15B-1.0.GGMLv3.q8_0/WizardCoder-15B-1.0.ggmlv3.q8_0.bin'
load_model: n_vocab = 49153
load_model: n_ctx   = 8192
load_model: n_embd  = 6144
load_model: n_head  = 48
load_model: n_layer = 40
load_model: ftype   = 2007
load_model: qntvr   = 2
load_model: ggml ctx size = 34536.48 MB
ggml_init_cublas: found 2 CUDA devices:
  Device 0: NVIDIA GeForce RTX 3090, compute capability 8.6
  Device 1: NVIDIA GeForce GTX 1080 Ti, compute capability 6.1
load_model: memory size = 15360.00 MB, n_mem = 327680
load_model: model size  = 19176.25 MB
[2023-08-14 00:09:39.728] [info] Loaded model in 21839.60ms
(2023-08-14 00:09:40) [INFO    ] Crow/1.0 server is running at http://0.0.0.0:18080 using 32 threads
(2023-08-14 00:09:40) [INFO    ] Call `app.loglevel(crow::LogLevel::Warning)` to hide Info level logs.

does not use any gpu memory, extremely slow, only using CPU. the 3090 with 24gb VRAM is enough for the entire model to be loaded into it.

Wasn't able to get the docker image running (Illegal instruction (core dumped)) (no AVX support?)

main: seed = 1681324505

Illegal instruction (core dumped)

Wasn't able to get the docker image running.

apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "4"
    field.cattle.io/publicEndpoints: '[{"addresses":["192.168.100.103"],"port":32435,"protocol":"TCP","serviceName":"serge:turbopilot-nodeport","allNodes":true}]'
  labels:
    workload.user.cattle.io/workloadselector: apps.deployment-serge-turbopilot
  name: turbopilot
  namespace: serge
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      workload.user.cattle.io/workloadselector: apps.deployment-serge-turbopilot
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      creationTimestamp: null
      labels:
        workload.user.cattle.io/workloadselector: apps.deployment-serge-turbopilot
    spec:
      containers:
      - env:
        - name: MODEL
          value: /models/codegen-2B-multi-ggml-4bit-quant.bin
        image: ghcr.io/ravenscroftj/turbopilot/turbopilot:latest
        imagePullPolicy: IfNotPresent
        name: container-0
        ports:
        - containerPort: 18080
          name: turbopilot
          protocol: TCP
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /models
          name: turbopilot
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      terminationGracePeriodSeconds: 30
      volumes:
      - name: turbopilot
        persistentVolumeClaim:
          claimName: turbopilot

Fauxpilot client does not communicate with TurboPilot πŸš€server

Hello @ravenscroftj,

Thanks for this interesting repo!
Unfortunately, I have a problem using the fauxpilot client. Here is a description of my issue.

Fauxpilot settings in user settings.json:
"fauxpilot.server": "http://localhost:18080/v1/engines",
"fauxpilot.enabled": true,

Process 1:

  • I launch the turbopilot server.
  • I send a test request using the curl command through my terminal.
  • the server receives the request, processes it and sends it back in less than a second.
  • the completion is received following the curl command.
    So far, so good.

Process 2:

  • I launch the turbopilot server.
  • I launch VScode with the fauxpilot extension preinstalled and prepared.
  • I activate fauxpilot.
  • I start writing def helllo-word(): to execute the completion.
  • The fauxpilot circle activates at the bottom left of fauxpilot, then changes to a warning logo - "Fauxpilot - Working".
  • Following this experiment, the server receives no requests...

I tested on a windows machine and a linux one, and I encounter the same problem.
I've also tested your fauxpilot pre-release without success...
Do you have any ideas about the origin of this problem?

OOM - Segmentation fault (core dumped)

I'm using the following docker-compose file on ARM Ubuntu 22.04 Oracle cloud, running stablecode. I've tried starcode and Wizardcoder too, both yielded the same error.

docker-compose.yml:

version: '3.3'
services:
  turbopilot:
    container_name: turbopilot
    image: 'ghcr.io/ravenscroftj/turbopilot:nightly-8be7171573ddd3e1c2fc83c2576e4e40621adf31'
    environment:
        - THREADS=3
        - MODEL_TYPE=stablecode
        - MODEL=/models/stablecode-instruct-alpha-3b.ggmlv1.q4_0.bin
        # - MODEL_TYPE=starcoder
        # - MODEL=/models/santacoder-q4_0.bin
    volumes:
        - /home/ubuntu/appdata/turbopilot/models:/models
    # ports:
    #     - '18080:18080'
    networks:
      - swag
    labels:
      - swag=enable
networks:
  swag:
    name: swag
    external: true

logs:

[2023-08-14 01:55:04.526] [info] Initializing StableLM type model for 'stablecode' model type
[2023-08-14 01:55:04.527] [info] Attempt to load model from stablecode
load_model: loading model from '/models/stablecode-instruct-alpha-3b.ggmlv1.q4_0.bin' - please wait ...
load_model: n_vocab = 49152
load_model: n_ctx   = 4096
load_model: n_embd  = 2560
load_model: n_head  = 32
load_model: n_layer = 32
load_model: n_rot   = 20
load_model: par_res = 1
load_model: ftype   = 2002
load_model: qntvr   = 2
load_model: ggml ctx size = 4849.28 MB
load_model: memory_size =  1280.00 MB, n_mem = 131072
load_model: ................................................ done
load_model: model size =  1489.08 MB / num tensors = 388
[2023-08-14 01:55:05.713] [info] Loaded model in 1185.33ms
(2023-08-14 01:55:05) [INFO    ] Crow/1.0 server is running at http://0.0.0.0:18080 using 4 threads
(2023-08-14 01:55:05) [INFO    ] Call `app.loglevel(crow::LogLevel::Warning)` to hide Info level logs.
(2023-08-14 01:57:42) [INFO    ] Request: 172.20.0.4:59486 0xfffe5e5fb020 HTTP/1.1 POST /v1/engines/codegen/completions
Segmentation fault (core dumped)

Investigate tokenizer behaviour to understand why it is different to Huggingface Tokenizer

If we consider the following prompt, then huggingface's tokenizer says there are 1144 tokens whereas the 2B model's log show 1473 tokens. The 6B model's logs show 1222 tokens. I downloaded the models from the google drive and have not quantized myself. I'm not sure of the cause of this discrepancy.

"# Here are some relevant code fragments from other files of the repo:\n# --------------------------------------------------\n# the below code fragment can be found in:\n# mindflow/core/git/add.py\n# --------------------------------------------------\n# import subprocess\n# from typing import Tuple\n# \n# from mindflow.utils.execute import execute_no_trace\n# \n# \n# def run_add(args: Tuple[str]):\n#     \"\"\"\n#     Add command.\n#     \"\"\"\n#     command = [\"git\", \"add\"] + list(args)\n# \n#     # Execute the git diff command and retrieve the output as a string\n#     execute_no_trace(command)\n# --------------------------------------------------\n# the below code fragment can be found in:\n# mindflow/core/git/pr.py\n# --------------------------------------------------\n#         return\n# \n#     title, body = title_body_tuple\n# \n#     command: List[str] = [\"gh\", \"pr\", \"create\"] + list(args) + [\"--title\", title, \"--body\", body]  # type: ignore\n#     print(execute_no_trace(command))\n# \n# \n# def create_title_and_body(\n#     base_branch, title: Optional[str], body: Optional[str]\n# ) -> Optional[Tuple[str, str]]:\n#     settings = Settings()\n# \n#     diff_output = run_diff((base_branch,))\n#     if not diff_output:\n#         diff_output = \"\"\n# \n#     title_response: Union[ModelError, str]\n#     body_response: Union[ModelError, str]\n#     if title is None and body is None:\n# --------------------------------------------------\n# the below code fragment can be found in:\n# mindflow/core/git/pr.py\n# --------------------------------------------------\n# from mindflow.utils.prompts import PR_BODY_PREFIX\n# from mindflow.utils.prompts import PR_TITLE_PREFIX\n# \n# \n# def run_pr(args: Tuple[str], title: Optional[str] = None, body: Optional[str] = None):\n#     base_branch = get_flag_value(args, [\"--base\", \"-B\"])\n# \n#     if base_branch is None:\n#         # Determine the name of the default branch\n#         base_branch = (\n#             subprocess.check_output([\"git\", \"symbolic-ref\", \"refs/remotes/origin/HEAD\"])\n#             .decode()\n#             .strip()\n#             .split(\"/\")[-1]\n#         )\n# \n#     if not title or not body:\n#         title_body_tuple = create_title_and_body(base_branch, title, body)\n# \n#     if not title_body_tuple:\n# --------------------------------------------------\n# the below code fragment can be found in:\n# mindflow/core/git/pr.py\n# --------------------------------------------------\n#             subprocess.check_output([\"git\", \"symbolic-ref\", \"refs/remotes/origin/HEAD\"])\n#             .decode()\n#             .strip()\n#             .split(\"/\")[-1]\n#         )\n# \n#     if not title or not body:\n#         title_body_tuple = create_title_and_body(base_branch, title, body)\n# \n#     if not title_body_tuple:\n#         return\n# \n#     title, body = title_body_tuple\n# \n#     command: List[str] = [\"gh\", \"pr\", \"create\"] + list(args) + [\"--title\", title, \"--body\", body]  # type: ignore\n#     print(execute_no_trace(command))\n# \n# \n# def create_title_and_body(\n#     base_branch, title: Optional[str], body: Optional[str]\n# --------------------------------------------------\n\nfrom typing import Optional, Tuple, List\n\nfrom mindflow.core.git.pr import create_title_and_body\nfrom mindflow.utils.command_parse import get_flag_value\nfrom mindflow.utils.execute import execute_no_trace\n\n\ndef run_mr(\n    args: Tuple[str], title: Optional[str] = None, description: Optional[str] = None\n):\n    base_branch = get_flag_value(args, [\"--target-branch\", \"-b\"])\n\n    if base_branch is None:\n        # Determine the name of the default branch\n        base_branch = (\n            subprocess.check_output([\"git\", \"symbolic-ref\", \"refs/remotes/origin/HEAD\"])"

use WebSocket for Real-time reception

Due to the influence of computer performance and model size, the waiting time may be a little long. Can we use WebSocket to communicate to get real-time line-by-line display code?

Although the total time of code generation will not change, it can improve the user experience. At the same time, the relevant code of vscode-fauxpilot also needs to be modified.

Here is an example of using WS for ggml model in c++.
https://github.com/monatis/llm-api

Support Windows Builds

Llama.cpp provides windows build support but currently turbopilot does not. A few people have been caught out by this (#17) - I would like to implement windows builds out of the box.

In order to make this work a new job needs to be added to the githhub action that builds codeserve which runs on windows and uploads the .exe artifact (the logic should be pretty much the same as the other builds). It may be necessary to copy workarounds for any windows specific quirks from llama.cpp

[Feature request] Add refact model

Would it be possible to add support for Refact model (released on September 4th)? https://huggingface.co/smallcloudai/Refact-1_6B-fim

Apparently it has much better results than StableCode, and as far as I understand it might even be lower on ram (1.6B vs 3B model)

Thanks for this great project btw! It's impressive how each month there are new models with even better results and (sometimes) lower hardware requirements, I hope at some point we'll be able to have some as good as GPT-4 models self-hosted on "normal" hardware :)

Can TurboPilot be configured to work with the official VSCode Copilot plugin?

According to the documentation of FauxPilot (https://github.com/fauxpilot/fauxpilot/blob/main/documentation/client.md#copilot-plugin), it is possible to configure the official VSCode Copilot plugin to use a local server. I am wondering if the same can be done with TurboPilot (https://github.com/ravenscroftj/turbopilot).

I tried to configure the official GitHub Copilot plugin to use a local server by adding the following settings in my VSCode settings.json file:

"debug.overrideEngine": "codegen",
"debug.testOverrideProxyUrl": "http://localhost:18080",
"debug.overrideProxyUrl": "http://localhost:18080"

However, when I tried to use FauxPilot, I received the following error message:

(2023-04-14 10:27:15) [INFO    ] Request: 127.0.0.1:56113 0x101008200 HTTP/1.1 POST /v1/engines/codegen/completions
operator(): number of tokens in prompt = 401

(2023-04-14 10:27:15) [ERROR   ] An uncaught exception occurred: cannot find key
(2023-04-14 10:27:15) [INFO    ] Response: 0x101008200 /v1/engines/codegen/completions 500 1

I am not sure what went wrong and how to fix this issue. Has anyone else faced a similar problem while configuring the official GitHub Copilot plugin? Any help or suggestions would be greatly appreciated.

Thank you in advance for your assistance!

Very slow for completions in long files with vscode-fauxpilot

The model can sometimes take several minutes to complete for long files. This was observed by @dabdine on mac but seems to be a general issue. I suspect that this is to do with the model having to factor in all the tokens in a really long prompt before making new predictions.

A possible technical trade-off could be to artificially limit prompt length to the last N words (this could be configurable). I imagine the model would still be able to make useful recommendations without the whole file as context.

The new CodeGen2 Release

Salesforce releases a new model codegen2, CodeGen2 is capable of infilling, and supports more programming languages.
https://huggingface.co/Salesforce/codegen2-1B
I tested codegen2-1B, and the code quality has improved, but it seems that the conversion script for codegen is no longer suitable to codegen2.
Codegen2 > gpt-j > ggml conversion is successful, no error prompt appears, but the output is abnormal code.

For example, the return:

<mask_52>...(<mask_1>hasportvt(porthandleport
,formhasvarformvarform(ODUCT(
((form((vchas<mask_52>,polyportvtpoly#(<mask_1>formoform(
in<mask_1>polyhandle(form,(...haswisetextpm,wisewise
(portformoform<mask_1>var(text(form/

The following is the conversion script Codegen2 > gpt-j

#!/usr/bin/env python3

import torch
from transformers import GPTJForCausalLM, GPTJConfig
# Note: these need the git version of Transformers as of 7/22/2022
from transformers import AutoTokenizer, AutoModelForCausalLM

print("Creating tokenizer")
tokenizer = AutoTokenizer.from_pretrained("Salesforce/codegen2-1B")

print('Loading CodeGen model')
cg_model = AutoModelForCausalLM.from_pretrained("Salesforce/codegen2-1B", trust_remote_code=True)
cg_config = cg_model.config

# Create empty GPTJ model
print('Creating empty GPTJ model')
config = GPTJConfig(
    vocab_size=cg_config.vocab_size,
    n_positions=cg_config.n_positions,
    n_embd=cg_config.n_embd,
    n_layer=cg_config.n_layer,
    n_head=cg_config.n_head,
    rotary_dim=cg_config.rotary_dim,
    n_inner=cg_config.n_inner,
    activation_function=cg_config.activation_function,
    resid_pdrop=cg_config.resid_pdrop,
    embd_pdrop=cg_config.embd_pdrop,
    attn_pdrop=cg_config.attn_pdrop,
    layer_norm_epsilon=cg_config.layer_norm_epsilon,
    initializer_range=cg_config.initializer_range,
    scale_attn_weights=cg_config.scale_attn_weights,
    use_cache=cg_config.use_cache,
    bos_token_id=cg_config.bos_token_id,
    eos_token_id=cg_config.eos_token_id,
    torch_dtype=cg_config.torch_dtype,
)

# Fix tokenizer type
config.tokenizer_class = 'CodeGenTokenizer'

gptj_model = GPTJForCausalLM(config)
embed_dim = config.n_embd

# Sample input for validating the conversion went OK
inputs = tokenizer.encode('fun download(url string', return_tensors='pt')

def replace(model, weights, name):
    model.state_dict()[name].copy_(weights.detach())

def replace_by_name(dest_model, src_model, old_name, new_name):
    assert old_name in src_model.state_dict()
    assert new_name in dest_model.state_dict()
    replace(dest_model, src_model.state_dict()[old_name], new_name)

print('Converting...')
# Copy weights from CodeGen model
with torch.no_grad():
    cg_model.eval()
    gptj_model.eval()
    
    for name, param in cg_model.named_parameters():
        # Handle the qkv weights separately because we need to split them
        if 'qkv_proj' in name:
            qkv_proj = param.detach().clone()
            mp_num = 4 # number of cores on their TPU I guess?
            local_dim = embed_dim // mp_num
            # GPT-J and CodeGen slice up the qkv projection slightly differently.
            # After a great deal of pain, I figured out that this permutation on
            # the weights of the qkv_proj fixes it.
            base_permutation = [0, 3, 6, 9, 1, 4, 7, 10, 2, 5, 8, 11]
            permutation = torch.cat([torch.arange(i*local_dim, (i+1)*local_dim) for i in base_permutation])
            # NB: we permute the *rows* here because the computation is xA.T
            new_qkv_proj = qkv_proj[permutation,:]
            # NB: the name QKV is misleading here; they are actually stored in
            #     the order QVK
            query, value, key = torch.split(new_qkv_proj, embed_dim, dim=0)
            replace(gptj_model, query, name.replace('qkv_proj', 'q_proj'))
            replace(gptj_model, key, name.replace('qkv_proj', 'k_proj'))
            replace(gptj_model, value, name.replace('qkv_proj', 'v_proj'))
        else:
            replace_by_name(gptj_model, cg_model, name, name)

    print('Conversion complete, running inference')
    cg_out = cg_model.generate(inputs, min_length=32, max_length=32, do_sample=False, pad_token_id=50256)
    gptj_out = gptj_model.generate(inputs, min_length=32, max_length=32, do_sample=False, pad_token_id=50256)
    print(cg_out[0])
    print(gptj_out[0])
    cg_dec, gptj_dec = tokenizer.batch_decode(torch.stack([cg_out,gptj_out]).squeeze())
    print("====== CodeGen ======")
    print(cg_dec)
    print("======  GPT-J  ======")
    print(gptj_dec)
    assert cg_dec == gptj_dec
    print("Saving model...")
    gptj_model.save_pretrained("gpt-j")
    tokenizer.save_pretrained("gpt-j")

how to convert a new codegen model to ggml

Because the return time of the larger model is too long, I turned to codegen-350M.
And it only takes 1-2s to return the prompt code on my M1 computer.

I found a new codegen model on HF, it use codegen-350M-multi and finetuned on microsoft's codexglue.
https://huggingface.co/ammarnasr/codegen-350M-multi-ft-on-code-x-glue-tc

I'll use the following py script to convert it to gpt-j first.
codegen_gptj_convert.py.zip

Then use convert-codegen-to-ggml.py

The model conversion was successful and loaded successfully, but codegen-serve only return "<|endoftext|>"

Support starcoder

Merging the latest GGML changes would allow us to support starcoder models which would provide yet another option to end users

CUDA Support

Merging CUDA support from llama.cpp which significantly accelerates inference for very long prompts

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.