Instructions to use gikebe/inclusion-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gikebe/inclusion-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="gikebe/inclusion-model")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("gikebe/inclusion-model") model = AutoModelForSequenceClassification.from_pretrained("gikebe/inclusion-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
-
tags:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
# Model Card for Model ID
|
|
@@ -17,92 +23,83 @@ tags: []
|
|
| 17 |
|
| 18 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 19 |
|
| 20 |
-
- **Developed by:**
|
| 21 |
-
- **
|
| 22 |
-
- **
|
| 23 |
-
- **
|
| 24 |
-
- **
|
| 25 |
-
- **License:** [More Information Needed]
|
| 26 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 27 |
|
| 28 |
### Model Sources [optional]
|
| 29 |
|
| 30 |
<!-- Provide the basic links for the model. -->
|
| 31 |
|
| 32 |
-
- **Repository:**
|
| 33 |
-
- **Paper [optional]:** [More Information Needed]
|
| 34 |
-
- **Demo [optional]:** [More Information Needed]
|
| 35 |
|
| 36 |
## Uses
|
| 37 |
-
|
| 38 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 39 |
-
|
| 40 |
### Direct Use
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
[More Information Needed]
|
| 45 |
|
| 46 |
-
### Downstream Use [optional]
|
| 47 |
-
|
| 48 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 49 |
-
|
| 50 |
-
[More Information Needed]
|
| 51 |
|
| 52 |
### Out-of-Scope Use
|
| 53 |
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
-
[More Information Needed]
|
| 57 |
|
| 58 |
## Bias, Risks, and Limitations
|
| 59 |
|
| 60 |
-
|
|
|
|
|
|
|
| 61 |
|
| 62 |
-
[More Information Needed]
|
| 63 |
|
| 64 |
### Recommendations
|
| 65 |
|
| 66 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 67 |
-
|
| 68 |
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 69 |
|
| 70 |
## How to Get Started with the Model
|
| 71 |
|
| 72 |
Use the code below to get started with the model.
|
| 73 |
|
| 74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
## Training Details
|
| 77 |
|
| 78 |
### Training Data
|
| 79 |
|
| 80 |
-
|
| 81 |
|
| 82 |
-
[More Information Needed]
|
| 83 |
|
| 84 |
### Training Procedure
|
| 85 |
|
| 86 |
-
|
| 87 |
|
| 88 |
-
#### Preprocessing
|
| 89 |
|
| 90 |
-
|
| 91 |
|
| 92 |
|
| 93 |
#### Training Hyperparameters
|
| 94 |
|
| 95 |
-
-
|
| 96 |
-
|
| 97 |
-
|
|
|
|
| 98 |
|
| 99 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 100 |
-
|
| 101 |
-
[More Information Needed]
|
| 102 |
|
| 103 |
## Evaluation
|
| 104 |
|
| 105 |
-
|
|
|
|
| 106 |
|
| 107 |
### Testing Data, Factors & Metrics
|
| 108 |
|
|
@@ -114,86 +111,44 @@ Use the code below to get started with the model.
|
|
| 114 |
|
| 115 |
#### Factors
|
| 116 |
|
| 117 |
-
|
| 118 |
|
| 119 |
-
[More Information Needed]
|
| 120 |
|
| 121 |
#### Metrics
|
| 122 |
|
| 123 |
-
|
| 124 |
|
| 125 |
-
[More Information Needed]
|
| 126 |
|
| 127 |
### Results
|
| 128 |
|
| 129 |
-
|
| 130 |
|
| 131 |
#### Summary
|
| 132 |
|
| 133 |
|
|
|
|
| 134 |
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 138 |
-
|
| 139 |
-
[More Information Needed]
|
| 140 |
-
|
| 141 |
-
## Environmental Impact
|
| 142 |
-
|
| 143 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 144 |
-
|
| 145 |
-
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 146 |
-
|
| 147 |
-
- **Hardware Type:** [More Information Needed]
|
| 148 |
-
- **Hours used:** [More Information Needed]
|
| 149 |
-
- **Cloud Provider:** [More Information Needed]
|
| 150 |
-
- **Compute Region:** [More Information Needed]
|
| 151 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 152 |
-
|
| 153 |
-
## Technical Specifications [optional]
|
| 154 |
-
|
| 155 |
-
### Model Architecture and Objective
|
| 156 |
-
|
| 157 |
-
[More Information Needed]
|
| 158 |
-
|
| 159 |
-
### Compute Infrastructure
|
| 160 |
-
|
| 161 |
-
[More Information Needed]
|
| 162 |
|
| 163 |
-
#### Hardware
|
| 164 |
|
| 165 |
-
|
|
|
|
| 166 |
|
| 167 |
-
#### Software
|
| 168 |
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
## Citation [optional]
|
| 172 |
-
|
| 173 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 174 |
|
| 175 |
**BibTeX:**
|
| 176 |
|
| 177 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
|
| 179 |
**APA:**
|
| 180 |
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
## Glossary [optional]
|
| 184 |
-
|
| 185 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 186 |
-
|
| 187 |
-
[More Information Needed]
|
| 188 |
-
|
| 189 |
-
## More Information [optional]
|
| 190 |
-
|
| 191 |
-
[More Information Needed]
|
| 192 |
-
|
| 193 |
-
## Model Card Authors [optional]
|
| 194 |
-
|
| 195 |
-
[More Information Needed]
|
| 196 |
-
|
| 197 |
-
## Model Card Contact
|
| 198 |
-
|
| 199 |
-
[More Information Needed]
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- inclusion
|
| 5 |
+
license: mit
|
| 6 |
+
datasets:
|
| 7 |
+
- gikebe/inclusion-dataset
|
| 8 |
+
base_model:
|
| 9 |
+
- google-bert/bert-base-uncased
|
| 10 |
---
|
| 11 |
|
| 12 |
# Model Card for Model ID
|
|
|
|
| 23 |
|
| 24 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 25 |
|
| 26 |
+
- **Developed by:** Gikebe
|
| 27 |
+
- **Model type:** BERT-based sequence classification model for inclusion-related text classification
|
| 28 |
+
- **Language(s) (NLP):** English
|
| 29 |
+
- **License:** MIT
|
| 30 |
+
- **Finetuned from model [optional]:** bert-base-uncased
|
|
|
|
|
|
|
| 31 |
|
| 32 |
### Model Sources [optional]
|
| 33 |
|
| 34 |
<!-- Provide the basic links for the model. -->
|
| 35 |
|
| 36 |
+
- **Repository:** https://huggingface.co/gikebe/inclusion-model/
|
|
|
|
|
|
|
| 37 |
|
| 38 |
## Uses
|
|
|
|
|
|
|
|
|
|
| 39 |
### Direct Use
|
| 40 |
|
| 41 |
+
This model can be used to classify text related to inclusion, diversity, and social justice topics into different categories such as "Inclusion Mindset," "Intersectionality," "Empowerment," "Privilege," and "Perfectionism."
|
|
|
|
|
|
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
### Out-of-Scope Use
|
| 45 |
|
| 46 |
+
The model is not suitable for:
|
| 47 |
+
|
| 48 |
+
-Classification tasks outside of the diversity and inclusion domain.
|
| 49 |
+
-Use cases where highly nuanced or sensitive topics require additional layers of ethical consideration.
|
| 50 |
|
|
|
|
| 51 |
|
| 52 |
## Bias, Risks, and Limitations
|
| 53 |
|
| 54 |
+
-The model may reflect biases present in the underlying training data.
|
| 55 |
+
-As it is trained on a specific set of texts, it may not generalize well to all contexts related to inclusion and diversity.
|
| 56 |
+
-The model could misinterpret or misclassify content in languages other than English or in cultural contexts it wasn’t trained on.
|
| 57 |
|
|
|
|
| 58 |
|
| 59 |
### Recommendations
|
| 60 |
|
|
|
|
|
|
|
| 61 |
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 62 |
|
| 63 |
## How to Get Started with the Model
|
| 64 |
|
| 65 |
Use the code below to get started with the model.
|
| 66 |
|
| 67 |
+
```
|
| 68 |
+
from transformers import pipeline
|
| 69 |
+
|
| 70 |
+
classifier = pipeline("text-classification", model="gikebe/inclusion-dataset")
|
| 71 |
+
result = classifier("Women of color face unique challenges that are often overlooked in diversity discussions.")
|
| 72 |
+
print(result)
|
| 73 |
+
```
|
| 74 |
|
| 75 |
## Training Details
|
| 76 |
|
| 77 |
### Training Data
|
| 78 |
|
| 79 |
+
The model was trained on a custom dataset of inclusion-related texts, derived from books such as Inclusion on Purpose by Ruchika Tulshyan, The Memo by Minda Harts, and others.
|
| 80 |
|
|
|
|
| 81 |
|
| 82 |
### Training Procedure
|
| 83 |
|
| 84 |
+
The training procedure involved fine-tuning the BERT-based model (bert-base-uncased) for text classification.
|
| 85 |
|
| 86 |
+
#### Preprocessing
|
| 87 |
|
| 88 |
+
Text was tokenized using the BertTokenizer with maximum sequence length truncation.
|
| 89 |
|
| 90 |
|
| 91 |
#### Training Hyperparameters
|
| 92 |
|
| 93 |
+
-Epochs: 3
|
| 94 |
+
-Batch size: 8
|
| 95 |
+
-Optimizer: AdamW
|
| 96 |
+
-Learning rate: 5e-5
|
| 97 |
|
|
|
|
|
|
|
|
|
|
| 98 |
|
| 99 |
## Evaluation
|
| 100 |
|
| 101 |
+
The model was evaluated on the same dataset split into training and testing sets.
|
| 102 |
+
|
| 103 |
|
| 104 |
### Testing Data, Factors & Metrics
|
| 105 |
|
|
|
|
| 111 |
|
| 112 |
#### Factors
|
| 113 |
|
| 114 |
+
Relevant factors include the context and specificity of the inclusion-related texts.
|
| 115 |
|
|
|
|
| 116 |
|
| 117 |
#### Metrics
|
| 118 |
|
| 119 |
+
Evaluation is yet to be done
|
| 120 |
|
|
|
|
| 121 |
|
| 122 |
### Results
|
| 123 |
|
| 124 |
+
Evaluation is yet to be done
|
| 125 |
|
| 126 |
#### Summary
|
| 127 |
|
| 128 |
|
| 129 |
+
## Model Examination
|
| 130 |
|
| 131 |
+
This model is based on the BERT architecture and fine-tuned for sequence classification with the objective of predicting categories related to inclusion and diversity.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
|
|
|
|
| 133 |
|
| 134 |
+
## Technical Specifications
|
| 135 |
+
The model was trained using cloud-based GPU resources.
|
| 136 |
|
|
|
|
| 137 |
|
| 138 |
+
## Citation
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
|
| 140 |
**BibTeX:**
|
| 141 |
|
| 142 |
+
```
|
| 143 |
+
@misc{gikebe_inclusion_2024,
|
| 144 |
+
author = {Gikebe, [Your Name]},
|
| 145 |
+
title = {Inclusion Model},
|
| 146 |
+
year = {2024},
|
| 147 |
+
publisher = {Hugging Face},
|
| 148 |
+
howpublished = {\url{https://huggingface.co/gikebe/inclusion-dataset}},
|
| 149 |
+
}
|
| 150 |
+
```
|
| 151 |
|
| 152 |
**APA:**
|
| 153 |
|
| 154 |
+
Gikebe. (2024). Inclusion Model. Hugging Face. Retrieved from https://huggingface.co/gikebe/inclusion-dataset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|