Add Keye vl 8b 1.5
Author: Kwai-Keye
Pull request: yes

# Model Upgrade: Keye-VL-1.5-8B

## Overview
This PR introduces an upgraded version of the visual-language model, transitioning from the previous `keye-preview` to `keye-vl-1.5-8B`. The update includes architectural refinements, documentation improvements, code optimizations, and style enhancements.

## Key Changes

### 1. Model Architecture
- Fine-tuned the model structure for improved performance and efficiency.
- Enhanced visual-language alignment capabilities.

### 2. Documentation
- Updated and optimized relevant documentation for better clarity and usability.
- Added detailed descriptions of new features and modifications.

### 3. Code Optimization
- Streamlined code workflow for enhanced maintainability.
- Removed redundant parameters and code lines to improve efficiency.
- Performed code style adaptations to ensure consistency with project standards.

## Impact
- Improved model performance and accuracy.
- Enhanced code readability and maintainability.
- Reduced computational overhead by eliminating unnecessary parameters.

## Usage
Refer to the updated documentation for detailed instructions on using the new model version.

## Notes
- This upgrade maintains backward compatibility with existing pipelines.
- Users are encouraged to review the updated docs for optimal utilization of new features.

Comments:
@zucchini-nlp Please help take a look at this PR, thanks.

Nice, just wondering if it is same or similar to https://github.com/huggingface/transformers/pull/39292 in terms of architecture? If it is, then imo it makes more sense to push the prev PR and allow `1.5 8B` to re-use modules from it. WDYT?

@zucchini-nlp
I closed https://github.com/huggingface/transformers/pull/39292 just now, we won't be submitting https://github.com/huggingface/transformers/pull/39292 version.
But how do we resolve the failures in the screenshot below? There's a bizarre issue in [page](https://app.circleci.com/pipelines/github/huggingface/transformers/147073/workflows/6a2185ef-195f-4517-9856-5efd01efc2df/jobs/1941729) where importing the torch library fails.
<img width="877" height="324" alt="截屏2025-09-22 16 46 27" src="https://github.com/user-attachments/assets/4b6e2f85-c1a1-42f5-83f7-cea5e09e67ee" />


To resolve the torch issue, you need to import `from .image_processing_keye_vl_1_5 import KeyeVL1_5ImageProcessor` and `from transformers.models.qwen2.tokenization_qwen2_fast import Qwen2TokenizerFast` in processing file with safe guards. Both require `is_vision_available()` and the second one also requires `is_torchvision_available()`


The other CI issues seem related to np version used, probably you need to find the equivalent of `np.long` in the version used in CI

I will review the PR shortly

@zucchini-nlp
Thanks.

Ping me again when it is ready for review, I will unsubscribe myself from notifications 

@zucchini-nlp 
Hi, Could you please take a look now? We've revised most of the code issues you pointed out, but some didn't quite fit our model, so we didn't make those changes.

**[For maintainers]** Suggested jobs to run (before merge)

run-slow: auto, keye_vl_1_5

@zucchini-nlp 

@Kwai-Keye oke, today or tomorrow I will try to take a look. I'll also be on vacation starting Thursday until November, so the review process will be a bit slower

In the meantime, can you take a look at failing tests?