mirror of
https://github.com/huggingface/candle.git
synced 2025-06-19 03:54:56 +00:00
44 lines
1.8 KiB
Rust
44 lines
1.8 KiB
Rust
//! Pixtral Language-Image Pre-Training
|
|
//!
|
|
//! Pixtral is an architecture trained for multimodal learning
|
|
//! using images paired with text descriptions.
|
|
//!
|
|
//! - Transformers Python [reference implementation](https://github.com/huggingface/transformers/tree/main/src/transformers/models/pixtral)
|
|
//! - [Blog Post](https://mistral.ai/news/pixtral-12b/) -
|
|
//! - [HF Model Card](https://huggingface.co/mistralai/Pixtral-12B-2409) -
|
|
//! - [HF Community Model Card](https://huggingface.co/mistral-community/pixtral-12b).
|
|
//!
|
|
//! # Example
|
|
//!
|
|
//! <div align=center>
|
|
//! <img src="https://github.com/huggingface/candle/raw/main/candle-examples/examples/flux/assets/flux-robot.jpg" alt="" width=320>
|
|
//! </div>
|
|
//!
|
|
//! ```bash
|
|
//! cargo run --profile=release-with-debug \
|
|
//! --features cuda \
|
|
//! --example pixtral -- \
|
|
//! --image candle-examples/examples/flux/assets/flux-robot.jpg
|
|
//! ```
|
|
//!
|
|
//! ```txt
|
|
//! Describe the image.
|
|
//!
|
|
//! The image depicts a charming, rustic robot standing on a sandy beach at sunset.
|
|
//! The robot has a vintage, steampunk aesthetic with visible gears and mechanical
|
|
//! parts. It is holding a small lantern in one hand, which emits a warm glow, and
|
|
//! its other arm is extended forward as if reaching out or guiding the way. The
|
|
//! robot's body is adorned with the word "RUST" in bright orange letters, adding to
|
|
//! its rustic theme.
|
|
//!
|
|
//! The background features a dramatic sky filled with clouds, illuminated by the
|
|
//! setting sun, casting a golden hue over the scene. Gentle waves lap against the
|
|
//! shore, creating a serene and picturesque atmosphere. The overall mood of the
|
|
//! image is whimsical and nostalgic, evoking a sense of adventure and tranquility.
|
|
//! ```
|
|
|
|
pub mod llava;
|
|
pub mod vision_model;
|
|
|
|
pub use llava::{Config, Model};
|