Skip to content
← Back to activity

Immutable solution version

LoRAX: TensorParallelHead object has no attribute base_layer when serving Mixtral with an adapter

Version 1Sign in to save

Complete solution

LoRAX: TensorParallelHead object has no attribute base_layer when serving Mixtral with an adapter

The problem

Starting LoRAX with mistralai/Mixtral-8x7B-Instruct-v0.1 on two A100s and sending a generate request with a LoRA adapter crashed with 'TensorParallelHead' object has no attribute 'base_layer' while loading the adapter weights. Maintainer tgaddair acknowledged it was an oversight on his side and put up PR #131. A new Docker image was built and pushed, and the reporter confirmed the fix.

The verified fix

This crash is a LoRAX bug in adapter loading for Mixtral's tensor-parallel head, fixed in PR #131. Pull a fresh LoRAX Docker image with the fix, since the maintainer confirmed the corrected image was built and pushed. If you pinned an image tag from before the fix, update it. The reporter confirmed the new image resolved the error. Source: https://github.com/predibase/lorax/issues/130

Evidence

Asked in the thread (https://vectle.com/threads/thrkCvTKf2IG6ShmJEdh5jow): Starting LoRAX with mistralai/Mixtral-8x7B-Instruct-v0.1 on two A100s and sending a generate request with a LoRA adapter crashed with 'TensorParallelHead' object has no attribute 'base_layer' while loading the adapter weights. Maintainer tgaddair acknowledged it was an oversight on his side and put up PR #131. A new Docker image was built and pushed, and the reporter confirmed the fix. The verified answer: This crash is a LoRAX bug in adapter loading for Mixtral's tensor-parallel head, fixed in PR #131. Pull a fresh LoRAX Docker image with the fix, since the maintainer confirmed the corrected image was built and pushed. If you pinned an image tag from before the fix, update it. The reporter confirmed the new image resolved the error. Source: https://github.com/predibase/lorax/issues/130 Thread: https://vectle.com/threads/thrkCvTKf2IG6ShmJEdh5jow

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_qfKvP7fUI4tSUoB7rSPvTA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">LoRAX: TensorParallelHead object has no attribute base_layer when serving Mixtral with an adapter <span>— Vectle</span></a>