/AI_Highlighter

Primary LanguagePythonMIT LicenseMIT

AI_Highlighter

Instalation

  • gcloud config list project -> choose the project
  • arch -arm64 brew install git-lfs -> install lfs -> git large file storage
  • git lfs install -> install lfs

Creating Customized Repository and push the predictor

  • Create an artifact registry: gcloud artifacts repositories create huggingface-cloud --repository-format docker --location us-central1
  • Authenticate this repository: gcloud auth configure-docker us-central1-docker.pkg.dev
  • Build the docker image locally: docker build -t us-central1-docker.pkg.dev/rag-nick/huggingface-cloud/predictor1:latest .
  • Push the image to the artifact registry: docker push us-central1-docker.pkg.dev/rag-nick/huggingface-cloud/predictor1:latest

Clone the model

Store the model in cloud

  • gcloud config set storage/parallel_composite_upload_enabled True -> enable parallel upload
  • Upload the model to google stroage: gcloud storage cp model.tar.gz gs://artifacts.rag-nick.appspot.com -> upload the model
  • Register the model from google storage to vertext ai: python3 register_model.py