Run this model with HF Jobs
Run zanegraper/LSTM_Recipe_Generator on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/zanegraper/LSTM_Recipe_Generator. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/zanegraper/LSTM_Recipe_Generator on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/zanegraper/LSTM_Recipe_Generator. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/zanegraper/LSTM_Recipe_Generator. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use zanegraper/LSTM_Recipe_Generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use zanegraper/LSTM_Recipe_Generator with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://zanegraper/LSTM_Recipe_Generator") - Notebooks
- Google Colab
- Kaggle
Create README.md
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768---language: entags:- text-generation- keras- tensorflow- lstm- educationallicense: otherdatasets:- epicurious-recipes-kaggle---
# LSTM Recipe Next-Token Generator
## Model SummaryThis model is a next-token language model based on a Long Short-Term Memory (LSTM) network trained on the Epicurious Recipes dataset. It was developed as part of an academic assignment for **MSAI 630 – Generative AI with LLMs** and demonstrates classical sequence modeling for text generation prior to transformer-based architectures.
The model predicts the next word token given a sequence of previous tokens and can be used iteratively to generate long-form recipe-style text.
## Architecture- Embedding size: 100- LSTM hidden units: 128- Vocabulary size: 10,000- Maximum sequence length: 200 tokens- Output: Softmax over vocabulary (next-token prediction)
Framework: TensorFlow / Keras
## Training Details- Dataset: Epicurious Recipes (Kaggle)- Objective: Next-token prediction using sparse categorical cross-entropy- Optimizer: Adam- Epochs: 25- Batch size: 32- Random seed: 42
Text preprocessing includes:- Lowercasing- Explicit punctuation token separation- Integer tokenization via `TextVectorization`
The original dataset is **not redistributed** in this repository.
## UsageThis model is intended for educational and experimental purposes.
Typical usage:1. Tokenize an input prompt using the same vocabulary2. Feed the token sequence to the model3. Sample the next token from the output distribution4. Append the token and repeat
Temperature sampling can be applied to control randomness during generation.
## Limitations- LSTM-based models have limited long-range coherence- Outputs may become repetitive over long generations- Not suitable for real-world recipe advice or food safety guidance- Trained on a static dataset with no factual grounding
## Intended Use- Educational demonstrations of sequence modeling- Classical NLP comparison against transformer models- Coursework and portfolio showcase
## AuthorZane GraperREADME.mdAdded+68