Skip to content

armgit / uzu

Public Imported from GitHub
0

A high-performance inference engine for AI models

formatting (#89)

uuuvn7a65abbcdb4a
diff --git a/crates/uzu/build/main.rs b/crates/uzu/build/main.rs
index ffd77191c..b6fec2775 100644
--- a/crates/uzu/build/main.rs
+++ b/crates/uzu/build/main.rs
@@ -1,6 +1,7 @@
use std::{env, fs, path::PathBuf};
use anyhow::Context;
+use futures::future::try_join_all;
mod common;
mod shared_types;
@@ -10,7 +11,6 @@ mod metal;
use common::compiler::Compiler;
use common::envs;
-use futures::future::try_join_all;
#[tokio::main(flavor = "current_thread")]
async fn main() -> anyhow::Result<()> {
diff --git a/crates/uzu/build/metal/compiler.rs b/crates/uzu/build/metal/compiler.rs
index 8e2bdb401..0b60958d7 100644
--- a/crates/uzu/build/metal/compiler.rs
+++ b/crates/uzu/build/metal/compiler.rs
@@ -495,7 +495,14 @@ impl MetalCompiler {
impl Compiler for MetalCompiler {
async fn build(&self) -> anyhow::Result<()> {
let nax_enabled = cfg!(feature = "metal-nax");
- debug_log!("metal nax {}", if nax_enabled { "enabled" } else { "disabled" });
+ debug_log!(
+ "metal nax {}",
+ if nax_enabled {
+ "enabled"
+ } else {
+ "disabled"
+ }
+ );
let metal_sources: Vec<PathBuf> = WalkDir::new(&self.src_dir)
.into_iter()
diff --git a/crates/uzu/tests/sampling_test.rs b/crates/uzu/tests/sampling_test.rs
index bcd8ccef3..4807f80f7 100644
--- a/crates/uzu/tests/sampling_test.rs
+++ b/crates/uzu/tests/sampling_test.rs
@@ -7,7 +7,10 @@ use uzu::{
KernelDataType, MTLContext,
kernel::{
SamplingKernel,
- dsl::{GumbelKernel, MinPKernel, TemperatureKernel, TopKKernel, TopPKernel},
+ dsl::{
+ GumbelKernel, MinPKernel, TemperatureKernel, TopKKernel,
+ TopPKernel,
+ },
sampling::ArgmaxStrategy,
},
metal_extensions::command_buffer_extensions::CommandBufferTimingAccess,