
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@qvac/dl-filesystem
Advanced tools
`@qvac/dl-filesystem` is a data loading library designed to load model weights and other resources from a local filesystem. It provides a simple and efficient way to retrieve files required for AI model inference, training, and other operations directly f
@qvac/dl-filesystem is a data loading library designed to load model weights and other resources from a local filesystem. It provides a simple and efficient way to retrieve files required for AI model inference, training, and other operations directly from a specified directory.
FilesystemDL extends BaseDL to provide a unified interface for loading files from a local directory. It is designed to integrate seamlessly with other QVAC AI Runtime libraries and classes.
const FilesystemDL = require('@qvac/dl-filesystem');
const fsDL = new FilesystemDL({ dirPath: '/path/to/your/models' });
dirPath: A string representing the local path to the directory containing model files or resources.getStream(path): Asynchronously retrieves a readable stream for a specified file path in the local directory.
const stream = await fsDL.getStream('model_weights.bin');
list(directoryPath = '.'): Lists the files in a directory relative to the base directory. If no directory is specified, it lists the files in the base directory.
const files = await fsDL.list();
console.log(files); // Output: ['file1.bin', 'file2.bin']
Below is an example of how FilesystemDL can be used within the QVAC AI Runtime to dynamically load models:
const Qvac = require('@qvac/rt');
const FilesystemDL = require('@qvac/dl-filesystem');
const Whisper = require('@qvac/transcription-whispercpp');
const qvac = new Qvac({ /* runtime options */ });
// Create an inference instance for Whisper using the local filesystem to load weights
const whisper = qvac.inference.add(new Whisper({
weights: new FilesystemDL({ dirPath: '/path/to/your/models' }),
params: { /* model parameters */ }
}));
// Load model weights
await whisper.load();
The FilesystemDL class can be integrated directly within model classes to dynamically fetch and load model files from a local directory.
class MyModel {
constructor(loader) {
this.loader = loader;
}
async load() {
const weightsStream = await this.loader.getStream('model_weights.bin');
// Process all the required files from the stream...
}
async listFiles() {
const files = await this.loader.list();
console.log('Available model files:', files);
}
}
Install dependencies:
npm install
Run unit tests:
npm test
list method can be used to enumerate the files available in the directory.FAQs
`@qvac/dl-filesystem` is a data loading library designed to load model weights and other resources from a local filesystem. It provides a simple and efficient way to retrieve files required for AI model inference, training, and other operations directly f
We found that @qvac/dl-filesystem demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.