Instructions to use greecehalf/bge-base-privacy-act-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use greecehalf/bge-base-privacy-act-ft with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("greecehalf/bge-base-privacy-act-ft") sentences = [ "When may the Commissioner direct an entity to notify an eligible data breach?", "Notification of eligible data breaches Part IIIC \nIntroduction Division 1 \n \nSection 26WC \n \n Privacy Act 1988 203 \nCompilation No. 104 Compilation date: 04/06/2026 \n \n26WC Deemed holding of information \nOverseas recipients \n (1) If: \n (a) an APP entity has disclosed personal information about one \nor more individuals to an overseas recipient; and \n (b) Australian Privacy Principle 8.1 applied to the disclosure of \nthe personal information; and \n (c) the overseas recipient holds the personal information; \nthis Part has effect as if: \n (d) the personal information were held by the APP entity; and \n (e) the APP entity were required under section 15 not to do an \nact, or engage in a practice, that breaches Australian Privacy \nPrinciple 11.1 in relation to the personal information. \nBodies or persons with no Australian link \n (2) If: \n (a) either: \n (i) a credit provider has disclosed, under \nparagraph 21G(3)(b) or (c), credit eligibility information \nabout one or more individuals to a related body \ncorporate, or person, that does not have an Australian \nlink; or \n (ii) a credit provider has disclosed, under \nsubsection 21M(1), credit eligibility information about \none or more individuals to a body or person that does \nnot have an Australian link; and \n (b) the related body corporate, body or person holds the credit \neligibility information; \nthis Part has effect as if: \n (c) the credit eligibility information were held by the credit \nprovider; and", "Credit reporting Part IIIA \nCredit reporting bodies Division 2 \n \nSection 20C \n \n Privacy Act 1988 101 \nCompilation No. 104 Compilation date: 04/06/2026 \n \n (e) information about the effect of section 20G (which deals with \ndirect marketing) and how the individual may make a request \nunder subsection (5) of that section; \n (f) how an individual may access credit reporting information \nabout the individual that is held by the body and seek the \ncorrection of such information; \n (g) information about the effect of section 20T (which deals with \nindividuals requesting the correction of credit information \netc.); \n (h) how an individual may complain about a failure of the body \nto comply with this Division or the registered CR code and \nhow the body will deal with such a complaint. \nAvailability of policy etc. \n (5) A credit reporting body must take such steps as are reasonable in \nthe circumstances to make the policy available: \n (a) free of charge; and \n (b) in such form as is appropriate. \nNote: A credit reporting body will usually make the policy available on the \nbody’s website. \n (6) If a person or body requests a copy, in a particular form, of the \npolicy of a credit reporting body, the credit reporting body must \ntake such steps as are reasonable in the circumstances to give the \nperson or body a copy in that form. \nSubdivision C—Collection of credit information \n20C Collection of solicited credit information \nProhibition on collection", "Notification of eligible data breaches Part IIIC \nNotification of eligible data breaches Division 3 \n \nSection 26WR \n \n Privacy Act 1988 219 \nCompilation No. 104 Compilation date: 04/06/2026 \n \nSubdivision C—Commissioner may direct entity to notify \neligible data breach \n26WR Commissioner may direct entity to notify eligible data breach \n (1) If the Commissioner is aware that there are reasonable grounds to \nbelieve that there has been an eligible data breach of an entity, the \nCommissioner may, by written notice given to the entity, direct the \nentity to: \n (a) prepare a statement that complies with subsection (4); and \n (b) give a copy of the statement to the Commissioner. \n (2) The direction must also require the entity to: \n (a) if it is practicable for the entity to notify the contents of the \nstatement to each of the individuals to whom the relevant \ninformation relates—take such steps as are reasonable in the \ncircumstances to notify the contents of the statement to each \nof the individuals to whom the relevant information relates; \nor \n (b) if it is practicable for the entity to notify the contents of the \nstatement to each of the individuals who are at risk from the \neligible data breach—take such steps as are reasonable in the \ncircumstances to notify the contents of the statement to each \nof the individuals who are at risk from the eligible data \nbreach; or \n (c) if neither paragraph (a) nor (b) applies:" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
SentenceTransformer based on BAAI/bge-base-en-v1.5
This is a sentence-transformers model finetuned from BAAI/bge-base-en-v1.5. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for retrieval.
Model Details
Model Description
- Model Type: Sentence Transformer
- Base model: BAAI/bge-base-en-v1.5
- Maximum Sequence Length: 512 tokens
- Output Dimensionality: 768 dimensions
- Similarity Function: Cosine Similarity
- Supported Modality: Text
Model Sources
- Documentation: Sentence Transformers Documentation
- Repository: Sentence Transformers on GitHub
- Hugging Face: Sentence Transformers on Hugging Face
Full Model Architecture
SentenceTransformer(
(0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'BertModel'})
(1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'cls', 'include_prompt': True})
(2): Normalize({})
)
Usage
Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("greecehalf/bge-base-privacy-act-ft")
# Run inference
sentences = [
'What is an infringement notice under the Privacy Act?',
'Part VIB Compliance and enforcement \nDivision 1A Infringement notices \n \nSection 80UB \n \n334 Privacy Act 1988 \nCompilation No. 104 Compilation date: 04/06/2026 \n \nDivision 1A—Infringement notices \n80UB Infringement notices \nProvisions subject to an infringement notice \n (1) The following provisions are subject to an infringement notice \nunder Part 5 of the Regulatory Powers Act: \n (a) subsections 13K(1) and (2) (civil penalty provision for which \ninfringement notices or compliance notices can be issued); \n (b) subsection 66(1) (failure to give information); \n (c) subsection 80UC(4) (failure to comply with a compliance \nnotice). \nNote: Part 5 of the Regulatory Powers Act creates a framework for using \ninfringement notices in relation to provisions. \nAmount to be stated in an infringement notice for listed \ncompanies—section 13K \n (1A) Despite subsection 104(2) of the Regulatory Powers Act, if an \ninfringement notice relates to only one alleged contravention of \nsubsection 13K(1) or (2), or 80UC(4), by a listed corporation \n(within the meaning of the Corporations Act 2001), the amount to \nbe stated in the notice for the purposes of paragraph 104(1)(f) of \nthe Regulatory Powers Act is 200 penalty units. \n (1B) Despite subsection 104(3) of the Regulatory Powers Act, if an \ninfringement notice relates to more than one alleged contravention \nof subsection 13K(1) or (2), or 80UC(4), by a listed corporation \n(within the meaning of the Corporations Act 2001), the amount to',
'Part II Interpretation \nDivision 1 General definitions \n \nSection 6 \n \n16 Privacy Act 1988 \nCompilation No. 104 Compilation date: 04/06/2026 \n \ncredit reporting complaint means a complaint about an act or \npractice that, if established, would be an interference with the \nprivacy of an individual because: \n (a) it breached the registered CR code; or \n (b) it breached a provision of Part IIIA. \ncredit reporting information about an individual means credit \ninformation, or CRB derived information, about the individual. \ncredit worthiness of an individual means the individual’s: \n (a) eligibility to be provided with consumer credit; or \n (b) history in relation to consumer credit; or \n (c) capacity to repay an amount of credit that relates to consumer \ncredit. \nde facto partner of an individual has the meaning given by the Acts \nInterpretation Act 1901. \ndefault information has the meaning given by section 6Q. \nDefence Department means the Department of State that deals \nwith defence and that is administered by the Minister administering \nsection 1 of the Defence Act 1903. \nDefence Force includes the Australian Defence Force Cadets. \nde-identified: personal information is de-identified if the \ninformation is no longer about an identifiable individual or an \nindividual who is reasonably identifiable. \nDepartment means an Agency within the meaning of the Public \nService Act 1999. \neligible data breach has the meaning given by Division 2 of \nPart IIIC.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[1.0000, 0.8246, 0.4729],
# [0.8246, 1.0000, 0.3557],
# [0.4729, 0.3557, 1.0000]])
Training Details
Training Dataset
Unnamed Dataset
Size: 36 training samples
Columns:
sentence_0andsentence_1Approximate statistics based on the first 36 samples:
sentence_0 sentence_1 type string string details - min: 11 tokens
- mean: 17.5 tokens
- max: 24 tokens
- min: 79 tokens
- mean: 266.47 tokens
- max: 331 tokens
Samples:
sentence_0 sentence_1 How may a complaint be made to the Commissioner under the Privacy Act?Part V Investigations etc.Division 1 Investigation of complaints and investigations on the Commissioner’s initiative Section 36
258 Privacy Act 1988
Compilation No. 104 Compilation date: 04/06/2026Division 1—Investigation of complaints and investigations on the Commissioner’s initiative 36 Complaints (1) An individual may complain to the Commissioner about an act or practice that may be an interference with the privacy of the individual. (2) In the case of an act or practice that may be an interference with the privacy of 2 or more individuals, any one of those individuals may make a complaint under subsection (1) on behalf of all of the individuals. (2A) In the case of a representative complaint, this section has effect subject to section 38. (3) A complaint shall be in writing. (4) It is the duty of members of the staff of the Commissioner to provide appropriate assistance to a person who: (a) wishes to make a complaint; and (b) requires assi... | |
What matters must an APP entity's notification under APP 5 ordinarily cover?|Australian Privacy Principles Schedule 1 Collection of personal information Part 2Clause 5
Privacy Act 1988 367 Compilation No. 104 Compilation date: 04/06/2026
5 Australian Privacy Principle 5—notification of the collection of personal information 5.1 At or before the time or, if that is not practicable, as soon as practicable after, an APP entity collects personal information about an individual, the entity must take such steps (if any) as are reasonable in the circumstances: (a) to notify the individual of such matters referred to in subclause 5.2 as are reasonable in the circumstances; or (b) to otherwise ensure that the individual is aware of any such matters. 5.2 The matters for the purposes of subclause 5.1 are as follows: (a) the identity and contact details of the APP entity; (b) if: (i) the APP entity collects the personal information from someone other than the individual; or (ii) the individual may not be aware that the APP entity...| |How may an individual access credit eligibility information held about them by a credit provider?|Credit reporting Part IIIA Credit providers Division 3Section 21T
Privacy Act 1988 153 Compilation No. 104 Compilation date: 04/06/2026
(b) from unauthorised access, modification or disclosure. (2) If: (a) a credit provider holds credit eligibility information about an individual; and (b) the provider no longer needs the information for any purpose for which the information may be used or disclosed by the provider under this Division; and (c) the provider is not required by or under an Australian law, or a court/tribunal order, to retain the information; the provider must take such steps as are reasonable in the circumstances to destroy the information or to ensure that the information is de-identified. Civil penalty: 1,000 penalty units. (3) If a credit provider is an APP entity, Australian Privacy Principle 11 does not apply to the provider in relation to credit eligibility information. Subdivision F—Access to, and correction of, information 21T...|Loss:
MultipleNegativesRankingLosswith these parameters:{ "scale": 20.0, "similarity_fct": "cos_sim", "gather_across_devices": false, "directions": [ "query_to_doc" ], "partition_mode": "joint", "hardness_mode": null, "hardness_strength": 0.0 }
Training Hyperparameters
Non-Default Hyperparameters
num_train_epochs: 8multi_dataset_batch_sampler: round_robin
All Hyperparameters
Click to expand
do_predict: Falseprediction_loss_only: Trueper_device_train_batch_size: 8per_device_eval_batch_size: 8gradient_accumulation_steps: 1eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 5e-05weight_decay: 0.0adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1num_train_epochs: 8max_steps: -1lr_scheduler_type: linearlr_scheduler_kwargs: Nonewarmup_ratio: Nonewarmup_steps: 0log_level: passivelog_level_replica: warninglog_on_each_node: Truelogging_nan_inf_filter: Trueenable_jit_checkpoint: Falsesave_on_each_node: Falsesave_only_model: Falserestore_callback_states_from_checkpoint: Falseuse_cpu: Falseseed: 42data_seed: Nonebf16: Falsefp16: Falsebf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonelocal_rank: -1ddp_backend: Nonedebug: []dataloader_drop_last: Falsedataloader_num_workers: 0dataloader_prefetch_factor: Nonedisable_tqdm: Falseremove_unused_columns: Truelabel_names: Noneload_best_model_at_end: Falseignore_data_skip: Falsefsdp: []fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}accelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}parallelism_config: Nonedeepspeed: Nonelabel_smoothing_factor: 0.0optim: adamw_torch_fusedoptim_args: Nonegroup_by_length: Falselength_column_name: lengthproject: huggingfacetrackio_space_id: trackioddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falsedataloader_pin_memory: Truedataloader_persistent_workers: Falseskip_memory_metrics: Truepush_to_hub: Falseresume_from_checkpoint: Nonehub_model_id: Nonehub_strategy: every_savehub_private_repo: Nonehub_always_push: Falsehub_revision: Nonegradient_checkpointing: Falsegradient_checkpointing_kwargs: Noneinclude_for_metrics: []eval_do_concat_batches: Trueauto_find_batch_size: Falsefull_determinism: Falseddp_timeout: 1800torch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Noneinclude_num_input_tokens_seen: noneftune_noise_alpha: Noneoptim_target_modules: Nonebatch_eval_metrics: Falseeval_on_start: Falseuse_liger_kernel: Falseliger_kernel_config: Noneeval_use_gather_object: Falseaverage_tokens_across_devices: Trueuse_cache: Falseprompts: Nonebatch_sampler: batch_samplermulti_dataset_batch_sampler: round_robinrouter_mapping: {}learning_rate_mapping: {}
Training Time
- Training: 18.6 seconds
Framework Versions
- Python: 3.12.13
- Sentence Transformers: 5.4.1
- Transformers: 5.0.0
- PyTorch: 2.10.0+cu128
- Accelerate: 1.13.0
- Datasets: 5.0.0
- Tokenizers: 0.22.2
Citation
BibTeX
Sentence Transformers
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://arxiv.org/abs/1908.10084",
}
MultipleNegativesRankingLoss
@misc{oord2019representationlearningcontrastivepredictive,
title={Representation Learning with Contrastive Predictive Coding},
author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
year={2019},
eprint={1807.03748},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1807.03748},
}
- Downloads last month
- 12
Model tree for greecehalf/bge-base-privacy-act-ft
Base model
BAAI/bge-base-en-v1.5