
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
This is a module that will interface with [Gemma](https://blog.google/technology/developers/gemma-open-models/)'s [gemma.cpp](https://github.com/google/gemma.cpp). Its still a work in progress.
This is a module that will interface with Gemma's gemma.cpp. Its still a work in progress.
First with the current version you will need to clone the gemma.cpp repo, and build the library. You will also need to download the model files from Kaggle.
yarn add gemma-node
import { Gemma } from 'gemma-node'
const gemma = new Gemma({
directory: 'path/to/gemma.cpp/build/', // or process.env.GEMMA_DIR
tokenizer: 'tokenizer.spm ', // will resolve path based on directory
model: '2b-it',
compressedWeights: '2b-it-sfp.sbs', // will resolve path based on directory
})
await gemma.start()
This will start up the Gemma process and load the model. This is required and once the promise is resolves you are ready to send input to the model.
const input = 'This is a test'
const output = await gemma.sendMessageAsync(input)
console.log(output.join(' '))
There right now is only one way to send input, and receive output. This is the async method that uses async await. THe awaited output will be an array of strings.
Coming soon
FAQs
This is a module that will interface with [Gemma](https://blog.google/technology/developers/gemma-open-models/)'s [gemma.cpp](https://github.com/google/gemma.cpp). Its still a work in progress.
We found that gemma-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.