Downloads · 30 days
10
3% of all-time downloads
p2kalita/PolicyLens
PolicyLens is a question answering model from p2kalita. Use it when the input is a question plus a passage. It is set up for keras. The card lists the license as gemma.
This repository contains the configuration and metadata for the GemmaCausalLM model, a powerful causal language model designed for advanced NLP tasks such as text generation, dialogue systems, and autoregressive langu…
Downloads · 30 days
10
3% of all-time downloads
All-time downloads
335
Public
Repo size
10.5 GB
Likes
0
Public
Click a slice to open those files.
.h510.5 GB · 100%
From the Hugging Face model README
This repository contains the configuration and metadata for the GemmaCausalLM model, a powerful causal language model designed for advanced NLP tasks such as text generation, dialogue systems, and autoregressive language modeling.
The GemmaCausalLM combines a robust backbone with an intelligent preprocessor, providing an efficient setup for NLP tasks. Below are its key components:
GemmaBackbone):GemmaCausalLMPreprocessor):GemmaTokenizer):
tokenizer.json.3.5.00.17.02,617,270,528 (2.6 billion parameters).2024-11-18@13:59:51This metadata ensures reproducibility and provides insights into the complexity of the model.
This model is designed for tasks requiring causal language modeling, including but not limited to:
GemmaBackbone.tokenizer.json.preprocessor.json.Dependencies: Ensure the following libraries are installed:
pip install keras keras_hub
Model Loading: The model can be loaded as follows:
from keras_hub.src.models.gemma.gemma_causal_lm import GemmaCausalLM
model = GemmaCausalLM.from_config(config_file="path/to/config.json")
Inference: Use the preprocessor to tokenize input text and generate predictions with the model.
preprocessor = model.get_preprocessor()
inputs = preprocessor.tokenize("Your input text here.")
outputs = model.predict(inputs)
print(outputs)
Feel free to contribute to this repository by improving configurations, extending functionality, or reporting issues.
This project is licensed under the MIT License. See the LICENSE file for details.