virattt/financial-qa-10K
Viewer • Updated • 7k • 3.46k • 103
How to use RinKana/tinybert-financial-qa-keras-v1 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://RinKana/tinybert-financial-qa-keras-v1")
Base model
google-bert/bert-base-uncased