www.8wave.it
www.8wave.it
Smaller, optimized models for better applications.
Data stays local, no third-party access.
No cloud, no bills to pay.
Great results with a fraction of energy.
SOURCE:
https://www.washingtonpost.com/technology/2024/09/18/energy-ai-use-electricity-water-data-centers/
1 mail of 100 word written with GPT-4: 0,14kWh (14 LED lightbulbs for 1h)
> npm install @xenova/transformers
> npm install @tensorflow/tfjs
What web can do today.
speech recognition
audio classification
text to speech
text classification
question answering
summarization
translation
text generation
text toxicity
image classification
object detection
image segmentation
face detection
hand detection
depth estimation
> npm install @volverjs/ai
npm.im/@volverjs/ai
Maintained with ❤️ by 8 Wave
import { Translator } from '@volverjs/ai'
const text = 'Ciao, come stai?'
// init web worker
const translator = new Translator()
// wait for the translation
const result = await translator.translate(text, {
from: 'ita_Latn',
to: 'eng_Latn'
})
import { RemoveBackground } from '@volverjs/ai'
const sourceImageURL = 'https://example.com/image.jpg'
// init web worker
const removeBackground = new RemoveBackground()
// wait for image blob prediction
const resultImageBlob = await removeBackground.predict(sourceImageURL)
// get image URL from blob
const resultImageURL = URL.createObjectURL(resultImageBlob)
volverjs.github.io/ai
Xenova/nllb-200-distilled-600M
is ~900MB.
Not production ready for mobile devices. Can't access to specific HW (ex. NPU).
Each website have to download his models.
AI in Web APIs
Google I/O 2024 launched the Early Preview Program for AI features built into Chrome
const session = await ai.assistant.create()
// prompt the model and wait for the result
const result = await session.prompt("Write me a poem")
A full LLM by Gemini Nano.
const summarizer = await ai.summarizer.create()
const someLongText = "The gentle thud reverberated..."
// wait for the result
const result = await summarizer.summarize(someLongText)
Only in English (by now).
const detector = await translation.createDetector()
const someText = 'Hallo und herzlich willkommen!';
const results = await detector.detect(someText);
for (const result of results) {
// show the full list of potential languages
console.log(result.detectedLanguage, result.confidence);
}
Detect +100 languages.
const writer = await ai.writer.create()
const result = await writer.write(
"A draft of an email to my boss to request a salary increase."
)
Tools for revising and restructuring text.