File size: 1,006 Bytes
82e7490
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## **6 Tag the version of the curation**

Once you have made a dataset public, create a tagged branch using the [`create_tag`](https://huggingface.co/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_tag) function that allows for including the dataset in reproducible workflows.  Versions typically follow standard [semantic versioning guidelines](https://semver.org/) of `<major>.<minor>.<patch>`. 

import huggingface\_hub  
huggingface\_hub.create\_tag(  
repo\_id \= "\<org\_name\>/\<dataset\_name\>",  
tag \= "\<version\>",  
tag\_message \= "\<message\>",  
repo\_type \= "dataset")

To access the tagged branch from the web-interface, go to the dataset → Files and version → select from the drop-down menu the tagged version:  
![][image1]  
To download a specific tagged branch for a dataset, add the `revision="<version>"` argument to `load_dataset()`:

import datasets  
dataset \= datasets.load\_dataset("\<org\_name\>/\<dataset\_name\>", `revision="1.0"`)