Giter VIP home page Giter VIP logo

Comments (8)

flatsiedatsie avatar flatsiedatsie commented on July 29, 2024 1

FP32 was the key

from transformers.js.

flatsiedatsie avatar flatsiedatsie commented on July 29, 2024 1

Nah, no worries. With what you're saying I believe the issue was that I was feeding it a fake array to get it to preload. That worked with the V2 version, but no longer worked with the V3 version. But that's fine as there are plenty of new ways to handle pre-loading.

from transformers.js.

flatsiedatsie avatar flatsiedatsie commented on July 29, 2024

I spotted a small typo in the demo:

PipelineSingeton is missing an L

from transformers.js.

flatsiedatsie avatar flatsiedatsie commented on July 29, 2024

A small question: is there a downside to simply always using the timestamp version?

from transformers.js.

flatsiedatsie avatar flatsiedatsie commented on July 29, 2024

And some more questions:

The V2 demo has a number of values that could be manipulated. Are they still useful?

  • const isDistilWhisper = model.startsWith("distil-whisper/");
  • quantized

and these:

	        /// Greedy
	        //top_k: 0,
	        //do_sample: false,

	        // Sliding window
	        //chunk_length_s: isDistilWhisper ? 20 : 30,
	        //stride_length_s: isDistilWhisper ? 3 : 5,

	        // Language and task
	        //language: language,
	        task: subtask,

	        // Return timestamps
	        //return_timestamps: true,
	        //force_full_sequences: false,

from transformers.js.

flatsiedatsie avatar flatsiedatsie commented on July 29, 2024

I saw this error once:
Screenshot 2024-07-11 at 00 55 30

from transformers.js.

flatsiedatsie avatar flatsiedatsie commented on July 29, 2024

I'm having some trouble getting it to respond with more than 1 word when using WebGPU. It usually thinks it heard 'And'.

Screenshot 2024-07-11 at 01 07 14

from transformers.js.

xenova avatar xenova commented on July 29, 2024

Thanks for the report! The function does require Float32Array or Float64Array inputs, but we could use .slice() if .subarray isn't present (for normal arrays)

from transformers.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.