sarahalamdari commited on
Commit
0b67fbe
·
verified ·
1 Parent(s): 2f34491

Update transformers version in installation instructions

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -85,7 +85,7 @@ To import from HuggingFace, you will need to install these versions:
85
 
86
  ```bash
87
  uv pip install datasets==3.2.0 #for HF datasets
88
- uv pip install transformers==4.51.0
89
  uv pip install huggingface_hub~=0.34.4
90
  ```
91
 
@@ -100,8 +100,8 @@ from transformers import AutoModelForCausalLM, AutoTokenizer, set_seed
100
  set_seed(0)
101
  torch.set_default_device("cuda")
102
 
103
- model = AutoModelForCausalLM.from_pretrained("microsoft/Dayhoff-3b-GR-HM-41000").to("cuda")
104
- tokenizer = AutoTokenizer.from_pretrained("microsoft/Dayhoff-3b-GR-HM-41000", trust_remote_code=True)
105
 
106
 
107
  inputs = tokenizer(tokenizer.bos_token, return_tensors="pt", return_token_type_ids=False)
@@ -263,4 +263,4 @@ The code and datasets released in this repository are provided for research and
263
  If you use the code, data, models, or results. please cite our [preprint](https://aka.ms/dayhoff/preprint).
264
 
265
  ## Data Summary
266
- https://huggingface.co/microsoft/Dayhoff-3b-GR-HM-41000/blob/main/data_summary_card.md
 
85
 
86
  ```bash
87
  uv pip install datasets==3.2.0 #for HF datasets
88
+ uv pip install transformers==4.51.3
89
  uv pip install huggingface_hub~=0.34.4
90
  ```
91
 
 
100
  set_seed(0)
101
  torch.set_default_device("cuda")
102
 
103
+ model = AutoModelForCausalLM.from_pretrained("microsoft/Dayhoff-170m-GR").to("cuda")
104
+ tokenizer = AutoTokenizer.from_pretrained("microsoft/Dayhoff-170m-GR", trust_remote_code=True)
105
 
106
 
107
  inputs = tokenizer(tokenizer.bos_token, return_tensors="pt", return_token_type_ids=False)
 
263
  If you use the code, data, models, or results. please cite our [preprint](https://aka.ms/dayhoff/preprint).
264
 
265
  ## Data Summary
266
+ https://huggingface.co/microsoft/Dayhoff-170m-GR/blob/main/data_summary_card.md