Skip to content

Commit

Permalink
Fixed model creation naming
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-be committed Nov 8, 2020
1 parent 844118f commit 410800a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benches/generation_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use rust_bert::resources::{RemoteResource, Resource};
use std::time::{Duration, Instant};
use tch::Device;

fn create_summarization_model() -> TextGenerationModel {
fn create_text_generation_model() -> TextGenerationModel {
let config = TextGenerationConfig {
model_type: ModelType::GPT2,
model_resource: Resource::Remote(RemoteResource::from_pretrained(Gpt2ModelResources::GPT2)),
Expand Down Expand Up @@ -54,7 +54,7 @@ fn bench_generation(c: &mut Criterion) {
unsafe {
torch_sys::dummy_cuda_dependency();
}
let model = create_summarization_model();
let model = create_text_generation_model();

// Define input
let input = ["Hello, I'm a language model,"];
Expand Down

0 comments on commit 410800a

Please sign in to comment.