Skip to content

Commit

Permalink
Add DeviceMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
cdoko authored Dec 31, 2024
1 parent cffeaaa commit f0f3ac1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mistralrs-core/src/pipeline/diffusion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use super::{
GeneralMetadata, IsqPipelineMixin, Loader, MetadataMixin, ModelCategory, ModelKind, ModelPaths,
PreProcessingMixin, Processor, TokenSource,
};
use crate::device_map::DeviceMapper;
use crate::diffusion_models::processor::{DiffusionProcessor, ModelInputs};
use crate::paged_attention::AttentionImplementation;
use crate::pipeline::ChatTemplate;
Expand Down Expand Up @@ -296,6 +297,9 @@ impl MetadataMixin for DiffusionPipeline {
fn tokenizer(&self) -> Option<Arc<Tokenizer>> {
None
}
fn device_mapper(&self) -> Option<&dyn DeviceMapper> {

Check failure on line 300 in mistralrs-core/src/pipeline/diffusion.rs

View workflow job for this annotation

GitHub Actions / Clippy

method `device_mapper` is not a member of trait `MetadataMixin`

Check failure on line 300 in mistralrs-core/src/pipeline/diffusion.rs

View workflow job for this annotation

GitHub Actions / Check (ubuntu-latest, stable)

method `device_mapper` is not a member of trait `MetadataMixin`

Check failure on line 300 in mistralrs-core/src/pipeline/diffusion.rs

View workflow job for this annotation

GitHub Actions / Check (macOS-latest, stable)

method `device_mapper` is not a member of trait `MetadataMixin`

Check failure on line 300 in mistralrs-core/src/pipeline/diffusion.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest, stable)

method `device_mapper` is not a member of trait `MetadataMixin`

Check failure on line 300 in mistralrs-core/src/pipeline/diffusion.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest, stable)

method `device_mapper` is not a member of trait `MetadataMixin`

Check failure on line 300 in mistralrs-core/src/pipeline/diffusion.rs

View workflow job for this annotation

GitHub Actions / Docs

method `device_mapper` is not a member of trait `MetadataMixin`
None
}
}

#[async_trait::async_trait]
Expand Down

0 comments on commit f0f3ac1

Please sign in to comment.