YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
TensorFlow.js Model
Model Information
- Framework: TensorFlow.js
- Type: Deep Q-Network (DQN)
- Created by: IgnitionAI
Model Format
This model is saved in TensorFlow.js format and can be loaded in two ways:
LayersModel (Default)
- Better for fine-tuning and training
- More flexible for model modifications
- Higher memory usage
- Slower inference
GraphModel
- Optimized for inference only
- Faster execution
- Lower memory usage
- Not suitable for training
Usage
import * as tf from '@tensorflow/tfjs';
// Option 1: Load as LayersModel (for training/fine-tuning)
const layersModel = await tf.loadLayersModel('https://huggingface.co/salim4n/tfjs-dqn-test-1744563808991/resolve/main/model/model.json');
// Option 2: Load as GraphModel (for inference only)
const graphModel = await tf.loadGraphModel('https://huggingface.co/salim4n/tfjs-dqn-test-1744563808991/resolve/main/model/model.json');
// Run inference
const input = tf.tensor2d([[0.1, 0.2]]);
const output = model.predict(input);
Files
model.json: Model architecture and configurationweights.bin: Model weightsREADME.md: This documentation
Repository
This model was uploaded via the IgnitionAI TensorFlow.js integration.
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support