Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(single-binary): bundle ld.so #2602

Merged
merged 6 commits into from
Jun 18, 2024
Merged

fix(single-binary): bundle ld.so #2602

merged 6 commits into from
Jun 18, 2024

Conversation

mudler
Copy link
Owner

@mudler mudler commented Jun 18, 2024

Description

This PR fixes single binary execution on linux systems by adding the ld.so file to the libraries.

Context As we bundle libs when running in single-binary mode and we use LD_LIBRARY_PATH to point to the .so files, we need also to run them with the associated ld.so file to avoid hitting stack smash.

Note This affects ONLY Linux builds (both arm64 and amd64)

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Copy link

netlify bot commented Jun 18, 2024

Deploy Preview for localai ready!

Name Link
🔨 Latest commit dbd8c04
🔍 Latest deploy log https://app.netlify.com/sites/localai/deploys/6671f127cadc340008fc4f5c
😎 Deploy Preview https://deploy-preview-2602--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mudler mudler added the bug Something isn't working label Jun 18, 2024
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler mudler merged commit 89a11e1 into master Jun 18, 2024
38 checks passed
@mudler mudler deleted the debug_single_binary branch June 18, 2024 20:43
truecharts-admin added a commit to truecharts/charts that referenced this pull request Jun 19, 2024
…7.1 by renovate (#23553)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [docker.io/localai/localai](https://togithub.com/mudler/LocalAI) |
patch | `v2.17.0-aio-cpu` -> `v2.17.1-aio-cpu` |
| [docker.io/localai/localai](https://togithub.com/mudler/LocalAI) |
patch | `v2.17.0-aio-gpu-nvidia-cuda-11` ->
`v2.17.1-aio-gpu-nvidia-cuda-11` |
| [docker.io/localai/localai](https://togithub.com/mudler/LocalAI) |
patch | `v2.17.0-cublas-cuda11-ffmpeg-core` ->
`v2.17.1-cublas-cuda11-ffmpeg-core` |
| [docker.io/localai/localai](https://togithub.com/mudler/LocalAI) |
patch | `v2.17.0-cublas-cuda11-core` -> `v2.17.1-cublas-cuda11-core` |
| [docker.io/localai/localai](https://togithub.com/mudler/LocalAI) |
patch | `v2.17.0-cublas-cuda12-ffmpeg-core` ->
`v2.17.1-cublas-cuda12-ffmpeg-core` |
| [docker.io/localai/localai](https://togithub.com/mudler/LocalAI) |
patch | `v2.17.0-cublas-cuda12-core` -> `v2.17.1-cublas-cuda12-core` |
| [docker.io/localai/localai](https://togithub.com/mudler/LocalAI) |
patch | `v2.17.0-ffmpeg-core` -> `v2.17.1-ffmpeg-core` |
| [docker.io/localai/localai](https://togithub.com/mudler/LocalAI) |
patch | `v2.17.0` -> `v2.17.1` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>mudler/LocalAI (docker.io/localai/localai)</summary>

###
[`v2.17.1`](https://togithub.com/mudler/LocalAI/releases/tag/v2.17.1)

[Compare
Source](https://togithub.com/mudler/LocalAI/compare/v2.17.0...v2.17.1)

##### Highlights

This is a patch release to address issues with Linux single binary
releases. It also adds support for Stable diffusion 3!

##### Stable diffusion 3

You can use Stable diffusion 3 by installing the model in the gallery
(`stable-diffusion-3-medium`) or by placing this YAML file in the model
folder:

```yaml
backend: diffusers
diffusers:
  cuda: true
  enable_parameters: negative_prompt,num_inference_steps
  pipeline_type: StableDiffusion3Pipeline
f16: false
name: sd3
parameters:
  model: v2ray/stable-diffusion-3-medium-diffusers
step: 25
```

You can try then generating an image:

http://localhost:9091/v1/images/generations -H "Content-Type:
application/json" -d '{
      "prompt": "A cute baby sea otter", "model": "sd3"
    }

Example result:


![b64514236520](https://togithub.com/mudler/LocalAI/assets/2420543/a31612ad-8730-401a-8e58-688295713ee5)

##### What's Changed

##### Bug fixes 🐛

- fix(single-binary): bundle ld.so by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2602

##### Exciting New Features 🎉

- feat(sd-3): add stablediffusion 3 support by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2591
- feat(talk): display an informative box, better colors by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2600

##### 📖 Documentation and examples

- ⬆️ Update docs version mudler/LocalAI by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2593

##### 👒 Dependencies

- ⬆️ Update ggerganov/llama.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2594

##### Other Changes

- ⬆️ Update ggerganov/llama.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2603

**Full Changelog**:
mudler/LocalAI@v2.17.0...v2.17.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImF1dG9tZXJnZSIsInVwZGF0ZS9kb2NrZXIvZ2VuZXJhbC9ub24tbWFqb3IiXX0=-->
truecharts-admin added a commit to truecharts/charts that referenced this pull request Jun 22, 2024
…7.1@4d8b84a by renovate (#23568)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [docker.io/localai/localai](https://togithub.com/mudler/LocalAI) |
patch | `v2.17.0-aio-gpu-nvidia-cuda-12` ->
`v2.17.1-aio-gpu-nvidia-cuda-12` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>mudler/LocalAI (docker.io/localai/localai)</summary>

###
[`v2.17.1`](https://togithub.com/mudler/LocalAI/releases/tag/v2.17.1)

[Compare
Source](https://togithub.com/mudler/LocalAI/compare/v2.17.0...v2.17.1)

#### Highlights

This is a patch release to address issues with Linux single binary
releases. It also adds support for Stable diffusion 3!

##### Stable diffusion 3

You can use Stable diffusion 3 by installing the model in the gallery
(`stable-diffusion-3-medium`) or by placing this YAML file in the model
folder:

```yaml
backend: diffusers
diffusers:
  cuda: true
  enable_parameters: negative_prompt,num_inference_steps
  pipeline_type: StableDiffusion3Pipeline
f16: false
name: sd3
parameters:
  model: v2ray/stable-diffusion-3-medium-diffusers
step: 25
```

You can try then generating an image:

http://localhost:9091/v1/images/generations -H "Content-Type:
application/json" -d '{
      "prompt": "A cute baby sea otter", "model": "sd3"
    }

Example result:


![b64514236520](https://togithub.com/mudler/LocalAI/assets/2420543/a31612ad-8730-401a-8e58-688295713ee5)

#### What's Changed

##### Bug fixes 🐛

- fix(single-binary): bundle ld.so by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2602

##### Exciting New Features 🎉

- feat(sd-3): add stablediffusion 3 support by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2591
- feat(talk): display an informative box, better colors by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2600

##### 📖 Documentation and examples

- ⬆️ Update docs version mudler/LocalAI by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2593

##### 👒 Dependencies

- ⬆️ Update ggerganov/llama.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2594

##### Other Changes

- ⬆️ Update ggerganov/llama.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2603

**Full Changelog**:
mudler/LocalAI@v2.17.0...v2.17.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImF1dG9tZXJnZSIsInVwZGF0ZS9kb2NrZXIvZ2VuZXJhbC9ub24tbWFqb3IiXX0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant