Skip to content

Latest commit

 

History

History
59 lines (34 loc) · 2.19 KB

hf_model_download.md

File metadata and controls

59 lines (34 loc) · 2.19 KB

Downloading Model from huggingface

  • Visit the Hugging Face Models Hub at https://huggingface.co/models

  • Search for the "llama-2" model in search bar. Model Search

  • Choose the specific model you wish to download; for instance, let's select "llama-2-13b-chat-hf."

  • If you haven't already, sign up or log in to your Hugging Face account. Signup Page

  • Agree to the terms and conditions provided. T and C Page

  • Confirm that your request to access the repository is successful. Success

  • Complete the meta form by clicking on the link Meta website link mentioned in the previous steps. Meta Form

  • Navigate to the "Files" section, which displays the available files. If you don't have access, it will be indicated like below. Default files

  • Upon obtaining the necessary permissions, you will see all the files associated with the model on Hugging Face. Files list

  • Click on the three dots (...) next to the train. Files list

  • Select "Clone repository," which will prompt the following: Files list

  • Execute the provided command in your terminal. When prompted, enter your Hugging Face username and token. Files list

  • In the password section, insert your token. If you haven't generated a token, you can do so in the Hugging Face settings. Files list

  • Access the "Access Tokens" section in the right panel. Files list

  • Generate a new token or copy an existing one. Files list

  • Paste the token into your terminal. Files list

  • You may be asked for your username and password multiple times; provide the required information.

  • The terminal will initiate the download process for the model. This may take some time as it involves downloading checkpoints.

  • Once the download is complete, you will be able to view the contents of the downloaded model.