Instructions to use tejagowda/NextTokenPrediction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use tejagowda/NextTokenPrediction 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://tejagowda/NextTokenPrediction") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Upload Code FIle.ipynb
Verified signaturef905dfe -
Delete MidTerm.ipynb
Verified signature2818bdc -
Upload final_model.keras
Verified signaturee44d0f1 -
Update README.md
Verified signature3413b8d -
Create README.md
Verified signatureBilingual Language Model for Next Token Prediction Overview: This project focuses on building a neural network-based language model for next token prediction using two languages: English and Hebrew. The model is implemented using an LSTM (Long Short-Term Memory) architecture, designed to predict the next word in a sequence based on the training data provided. The project leverages Recurrent Neural Networks (RNNs) and evaluates the model using the perplexity metric to measure the quality of the predictions. The final model and checkpoints are provided, along with training history including perplexity and loss values. Model Architecture: - Embedding Layer**: Converts tokenized words into dense vector representations. - LSTM Layer**: Consists of 128 units to capture long-term dependencies in the sequence data. - Dense Output Layer**: Outputs a probability distribution over the vocabulary to predict the next word. - Total Vocabulary Size**: The model is trained on a corpus of size `[tot…56bebd8 -
Upload 6 files
Verified signaturefb50754 -
initial commit
Verified signature15acb6c