Add Hugging Face Transformers extension by 0.2Studio#2547
Conversation
|
!format |
|
Probably not going to be merged for the same reasons as #2545 |
|
Also, description formatting looks almost identical to #2545 leading me to believe some kind of connection exists between the two (e.g., AI-generated description, although that's less of a concern than AI-generated code) |
|
It's not like that. This is a member of my studio. After learning that his extension application was rejected, I decided to rewrite the extension based on the requirements you mentioned. This is an extension for running local models, which does not require a key and is a very good extension. I sincerely hope to be able to have a look.The similarity in the introduction is because I am a Chinese and my English proficiency is not so good. Therefore, I adopted his format and made some modifications. I hope you can understand. |
|
While I like the idea of local LLMs in the browser, unfortunately they likely won't be very beneficial to our target audience. LLMs take a lot of RAM and even a small model with 4-bit quantization such as Gemma4:e4b (which is supposed to be able to run on modern smartphones) would likely max out the 8 GB of RAM on a chromebook |
|
see this comment: #2486 (comment) |
|
there's no issue with the idea of having a sentiment analysis extension or an on-device AI translation extension or a classification extension or whatever the way this is being proposed isn't great though from an extension design perspective, many of these use cases are very different and shouldn't just be in one big extension. the blocks also should not be returning JSON, they should be returning values that are useful on their own, not after being combined with 5 different blocks from the JSON extension to get something actually meaningful there's also some technical issues with this extension as-is. even on my Reasonably Okay internet i'm finding myself waiting for minutes (!!) to fill in a plan for the first time. maybe that's fine for some uses, but likely all realistic projects that would want to use this extension would not find that OK. (also note that ~1/3rd of TurboWarp users are on cheap Chromebooks) see the face sensing extension for what i think is a pretty good use of "AI" in an extension - it's a couple megabyte model that does a very narrow task and does it well. we can ship that model in every copy of the desktop app and package it into projects automatically. works great. those things do not work so well when we're looking at massive language models unfortunately anyway the point is mostly that people have proposed tens of versions of AI-as-an-extension. this is probably the closest one to being mergable just on account of it not requiring everybody to type in their OpenAI API key. don't have an answer for you at this time on direction |
|
ok got it.May I ask if it's possible to submit a extension for training AI model? For example, using TensorFlow.js to implement AI model training on the web page. |
Tend to agree. Any kind of AI extension for TurboWarp at this point must be local
You could try, but you would probably have to implement it well and justify its use case |


Statement on AI Use
The code in this extension was partially drafted and refactored with the help of AI (OpenAI GPT-5/Codex) to accelerate development. All AI-generated portions were reviewed, tested, and corrected by human developers. I take full responsibility for the final code, which has been checked for correctness, security, and compliance with the TurboWarp extension gallery requirements.
Description
Add a new
Hugging Face Transformersextension that allows TurboWarp projects to run Hugging FaceTransformers.jsmodels directly in the browser, including common NLP tasks and lower-level advanced model/pipeline/tokenizer/processor access.Extension Details
huggingfacetransformershuggingface-transformers0.2StudioMPL-2.0Features
Transformers.jsbrowser bundledevice, anddtypeoptionszh-cnBlocks Overview
Files Included
extensions/huggingface-transformers.jsimages/huggingface-transformers.svgdocs/huggingface-transformers.mdChecklist
MPL-2.0)extensions/extensions.jsonnpm run validatepassesnpm run lintpassesNotes
Transformers.jstranslations/extension-runtime.jsonandtranslations/extension-metadata.json