Skip to content

Commit

Permalink
Switch to f16
Browse files Browse the repository at this point in the history
  • Loading branch information
laggui committed May 27, 2024
1 parent 9492e20 commit 59061d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llama-burn/examples/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::time::Instant;

use burn::{
backend::{libtorch::LibTorchDevice, LibTorch},
tensor::backend::Backend,
tensor::{backend::Backend, f16},
};
use clap::Parser;
use llama_burn::{
Expand Down Expand Up @@ -71,7 +71,7 @@ pub fn generate<B: Backend, T: Tokenizer>(
}

pub fn main() {
type B = LibTorch;
type B = LibTorch<f16>;

// Parse arguments
let args = Config::parse();
Expand Down

0 comments on commit 59061d1

Please sign in to comment.