Replication package for the paper: "Datasets, Bias, Licenses, and Terms of Use: A Large and Longitudinal Study on the Documentation of Hugging Face Machine Learning Models"
Authors/Creators
Description
This replication package contains datasets and scripts related to the paper: "Datasets, Bias, Licenses, and Terms of Use: A Large and Longitudinal Study on the Documentation of Hugging Face Machine Learning Models"
root directory
statistics.r: R script used to compute the correlation between usage and downloads, and the RQ1/RQ2 inter-rater agreements
scripts/
Directory containing all the scripts used to collect and process data. For further details, see the README file inside the script directory.
further-analyses/
Directory containing scripts and data used for further analyses. For further details, see the README file inside the directory.
first-snaphot
Contains data related to the first snapshot (ICPC 2024 study)
modelsInfo.zip: zip file containing all the downloaded model cards (in JSON format)
Dataset
Dataset/DatasetHFmodellist.csv: list of HF models analyzed, with the following information: id,downloads,likes,tags,pipelinetag,pipelinecategory,License,licensemodelpermissivity Dataset/DatasetGitHubprjlistTransformers.txt: list of GitHub projects using the transformers library Dataset/DatasetGitHubprjlistDiffusers.txt: list of GitHub projects using the diffuserslibrary Dataset/DatasetGitHubprjfrompretrainedTransformers.txt: list of GitHub projects using the "frompretrained" transformers library Dataset/DatasetGitHubprjfrompretrainedDiffusers.txt: list of GitHub projects using the "frompretrained" diffusers library Dataset/DatasetGitHubprjmodelusedTransformers.csv: contains usage pairs: project, model for transformers library Dataset/DatasetGitHubprjmodelusedDiffusers.csv: contains usage pairs: project, model for diffusers library Dataset/DatasetIntersectedModels.csv : contains the models shared between the first and second snapshot for category Dataset/modelsReadme: contains the model cards belonging to the sample size Dataset/projectswith5ormorestars.csv: contains the projects with numStars major of 5 Dataset/projectsstars_summary.csv: contains the number of total projects with numStars RQ1
RQ1/RQ1datasetlistHF.txt: list of HF datasets RQ1/RQ1datasetTags.txt: list of models declaring the dataset tag RQ1/RQ1modelDataset.csv : list of models declaring the dataset tag with their respective datasets RQ1/RQ1datasetSample.csv: sample set of models used for the manual analysis of datasets RQ2
RQ2/RQ2biasclassification_sheet.csv: results of the manual labeling RQ3
RQ3/RQ3LicenseModels.csv: model license list,categorized by permissiveness, with the respective number of occurrences RQ3/RQ3LicenseprjTransformers.csv: transformers project license list, categorized by permissiveness, with the respective number of occurrences RQ3/RQ3LicenseprjDiffusers.csv : diffusers project license list, categorized by permissiveness, with the respective number of occurrences RQ3/RQ3prjmodellicensepermissivityTransformersDiffusers.csv: total list of projects that reuse the models, with their respective licenses and permissiveness related to Transformers and Diffuserslibrary RQ3/RQ3prjmodellicensepermissivityTransformersDiffusersStarmajor5.csv: total list of projects that reuse the models, with their respective licenses and permissiveness related to Transformers and Diffusers library for numStar > 5 RQ3/RQ3ContingencyMatrixpermissivityTransformersDiffusers.csv: usage contingency table between projects' licenses (columns) and models' licenses (rows) related to Transformers and Diffusers library in terms of permissiveness RQ3/RQ3ContingencyMatrixlicensesTransformersDiffusers.csv: usage contingency table between projects' licenses (columns) and models' licenses (rows) related to Transformers and Diffuserslibrary in terms of licenses RQ3/RQ3ContingencyMatrixpermissivityTransformersDiffusersStarmajor5.csv: usage contingency table between projects' licenses (columns) and models' licenses (rows) related to Transformers and Diffusers library in terms of permissiveness for projects with numStar > 5 RQ3/RQ3ContingencyMatrixlicensesTransformersDiffusers_Starmajor5.csv: usage contingency table between projects' licenses (columns) and models' licenses (rows) related to Transformers and Diffusers library in terms of licenses for projects with numStar > 5 RQ4
RQ4/RQ4TermsofUseSnapshot1.csv: results of the manual labeling related to terms of use for the first snapshot RQ4/RQ4TermsofUseSnapshot2.csv: results of the manual labeling related to terms of use for the second snapshot
Dataset
Dataset/Dataset_HF-models-list.csv: list of HF models analyzedDataset/Dataset_github-prj-list.txt: list of GitHub projects using the transformers libraryDataset/Dataset_github-Prj_model-Used.csv: contains usage pairs: project, modelDataset/Dataset_prj-num-models-reused.csv: number of models used by each GitHub projectDataset/Dataset_model-download_num-prj_correlation.csvcontains, for each model used by GitHub projects: the name, the task, the number of reusing projects, and the number of downloads
RQ1
RQ1/RQ1_dataset-list.txt: list of HF datasetsRQ1/RQ1_datasetSample.csv: sample set of models used for the manual analysis of datasetsRQ1/RQ1_analyzeDatasetTags.py: Python script to analyze model tags for the presence of datasets. it requires to unzip themodelsInfo.zipin a directory with the same name (modelsInfo) at the root of the replication package folder. Produces the output to stdout. To redirect in a file fo be analyzed by theRQ2/countDataset.pyscriptRQ1/RQ1_countDataset.py: given the output ofRQ2/analyzeDatasetTags.py(passed as argument) produces, for each model, a list of Booleans indicating whether (i) the model only declares HF datasets, (ii) the model only declares external datasets, (iii) the model declares both, and (iv) the model is part of the sample for the manual analysisRQ1/RQ1_datasetTags.csv: output ofRQ2/analyzeDatasetTags.pyRQ1/RQ1_dataset_usage_count.csv: output ofRQ2/countDataset.py
RQ2
RQ2/tableBias.pdf: table detailing the number of occurrences of different types of bias by model TaskRQ2/RQ2_bias_classification_sheet.csv: results of the manual labelingRQ2/RQ2_isBiased.csv: file to compute the inter-rater agreement of whether or not a model documents BiasRQ2/RQ2_biasAgrLabels.csv: file to compute the inter-rater agreement related to bias categoriesRQ2/RQ2_final_bias_categories_with_levels.csv: for each model in the sample, this file lists (i) the bias leaf category, (ii) the first-level category, and (iii) the intermediate category
RQ3
RQ3/RQ3_LicenseValidation.csv: manual validation of a sample of licensesRQ3/RQ3_{NETWORK-RESTRICTIVE|RESTRICTIVE|WEAK-RESTRICTIVE|PERMISSIVE}-license-list.txt: lists of licenses with different permissivenessRQ3/RQ3_prjs_license.csv: for each project linked to models, among other fields it indicates the license tag and nameRQ3/RQ3_models_license.csv: for each model, indicates among other pieces of info, whether the model has a license, and if yes what kind of licenseRQ3/RQ3_model-prj-license_contingency_table.csv: usage contingency table between projects' licenses (columns) and models' licenses (rows)RQ3/RQ3_models_prjs_licenses_with_type.csv: pairs project-model, with their respective licenses and permissiveness levelRQ3/license-task-relation/: contains scripts and data to perform the analysis between task types and license types:analysis\_by\_type.py: script to perform the analysislist.csv: the list of licenses with their permissivenesslicensebytype.csv: licenses of all analyzed models
RQ4
RQ4/RQ4_Terms_of_Use_Snapshot1.csv: results of the manual labeling related to terms of use for the first snapshot
second-snaphot
Contains data related to the second snapshot.
Dataset
Dataset/Dataset_HF_model_list.csv: list of HF models analyzed, with the following information: id,downloads,likes,tags,pipeline_tag,pipeline_category,License,license_model_permissivityDataset/Dataset_GitHub_prj_list_Transformers.txt: list of GitHub projects using the transformers libraryDataset/Dataset_GitHub_prj_list_Diffusers.txt: list of GitHub projects using the diffusers libraryDataset/Dataset_GitHub_prj_frompretrained_Transformers.txt: list of GitHub projects using the "from_pretrained" transformers libraryDataset/Dataset_GitHub_prj_frompretrained_Diffusers.txt: list of GitHub projects using the "from_pretrained" diffusers libraryDataset/Dataset_GitHub_prj_model_used_Transformers.csv: contains usage pairs: project, model for transformerslibraryDataset/Dataset_GitHub_prj_model_used_Diffusers.csv: contains usage pairs: project, model for diffusers libraryDataset/Dataset_IntersectedModels.csv: contains the models shared between the first and second snapshot for categoryDataset/modelsReadme: contains the model cards belonging to the sample sizeDataset/projects_with_5_or_more_stars.csv: contains the projects with numStars major of 5Dataset/projects_stars_summary.csv: contains the number of total projects with numStars
RQ1
RQ1/RQ1_dataset_list_HF.txt: list of HF datasetsRQ1/RQ1_datasetTags.txt: list of models declaring the dataset tagRQ1/RQ1_modelDataset.csv: list of models declaring the dataset tag with their respective datasetsRQ1/RQ1_datasetSample.csv: sample set of models used for the manual analysis of datasets
RQ2
RQ2/RQ2_bias_classification_sheet.csv: results of the manual labeling
RQ3
RQ3/RQ3_License_Models.csv: model license list,categorized by permissiveness, with the respective number of occurrencesRQ3/RQ3_License_prjTransformers.csv: transformers project license list, categorized by permissiveness, with the respective number of occurrencesRQ3/RQ3_License_prjDiffusers.csv: diffusers project license list, categorized by permissiveness, with the respective number of occurrencesRQ3/RQ3_prj_model_license_permissivity_Transformers_Diffusers.csv: total list of projects that reuse the models, with their respective licenses and permissiveness related to Transformers and Diffusers libraryRQ3/RQ3_prj_model_license_permissivity_Transformers_Diffusers_Starmajor5.csv: total list of projects that reuse the models, with their respective licenses and permissiveness related to Transformers and Diffusers library for numStar > 5RQ3/RQ3_Contingency_Matrix_permissivity_Transformers_Diffusers.csv: usage contingency table between projects' licenses (columns) and models' licenses (rows) related to Transformers and Diffusers library in terms of permissivenessRQ3/RQ3_Contingency_Matrix_licenses_Transformers_Diffusers.csv: usage contingency table between projects' licenses (columns) and models' licenses (rows) related to Transformers and Diffusers library in terms of licensesRQ3/RQ3_Contingency_Matrix_permissivity_Transformers_Diffusers_Starmajor5.csv: usage contingency table between projects' licenses (columns) and models' licenses (rows) related to Transformers and Diffusers library in terms of permissiveness for projects with numStar > 5RQ3/RQ3_Contingency_Matrix_licenses_Transformers_Diffusers_Starmajor5.csv: usage contingency table between projects' licenses (columns) and models' licenses (rows) related to Transformers and Diffusers library in terms of licenses for projects with numStar > 5RQ3/license-task-relation/: contains scripts and data to perform the analysis between task types and license types:analysis\_by\_type.py: script to perform the analysislist.csv: the list of licenses with their permissivenesslicensebytype.csv: licenses of all analyzed models
RQ4
RQ4/RQ4_Terms_of_Use_Snapshot2.csv: results of the manual labeling related to terms of use for the second snapshot
Files
merged.zip
Files
(220.5 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:58067e0ed2963d2d93c2e349d440af2e
|
220.5 MB | Preview Download |