naicasc/all-MiniLM-L6-v2-finetuned-it-project-docs-qa-10000-4ep
SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
This is a sentence-transformers model finetuned from sentence-transformers/all-MiniLM-L6-v2 on the it_project_docs dataset. It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
Model Details
Model Description
- Model Type: Sentence Transformer
- Base model: sentence-transformers/all-MiniLM-L6-v2 <!-- at revision c9745ed1d9f207416be6d2e6f8de32d1f16199bf -->
- Maximum Sequence Length: 256 tokens
- Output Dimensionality: 384 dimensions
- Similarity Function: Cosine Similarity
- Training Dataset:
- it_project_docs <!-- - Language: Unknown --> <!-- - License: Unknown -->
Model Sources
- Documentation: Sentence Transformers Documentation
- Repository: Sentence Transformers on GitHub
- Hugging Face: Sentence Transformers on Hugging Face
Full Model Architecture
SentenceTransformer(
(0): Transformer({'max_seq_length': 256, 'do_lower_case': False, 'architecture': 'BertModel'})
(1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
(2): Normalize()
)Usage
Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
pip install -U sentence-transformersThen you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("gabrielegabellone/all-mini-itprojectdocs-10000-4-epoch")
# Run inference
queries = [
"How is configuration managed in CoreOps, and what is the order of precedence?",
]
documents = [
'## Configuration\n\nCoreOps is highly configurable, allowing you to tailor its behavior to your specific environment. Configuration can be managed through a central `coreops.yaml` file, environment variables, or command-line flags. The order of precedence is: command-line flags > environment variables > `coreops.yaml` > default values.',
"## About PylonGrid\n\nPylonGrid aims to simplify the complexity of managing large-scale distributed computing environments. It acts as a central nervous system for your compute resources, abstracting away the underlying infrastructure details and providing a unified interface for submitting, monitoring, and managing computational jobs. Whether you're running scientific simulations, data processing pipelines, or microservices, PylonGrid ensures your workloads are executed on the most suitable resources, maximizing throughput and minimizing operational overhead.\n\nKey principles guiding PylonGrid's development:\n* **Efficiency:** Optimize resource utilization through intelligent scheduling algorithms.\n* **Reliability:** Ensure job completion even in the face of node failures or network partitions.\n* **Flexibility:** Support diverse workloads and integrate with various infrastructure types (on-prem, cloud, hybrid).\n* **Scalability:** Designed to manage thousands of nodes and millions of jobs.\n* **Usability:** Provide intuitive CLI and API for developers and operators.",
'## Getting Started: Configuration\n\nOmniTrail\'s configuration is primarily managed through environment variables for Docker Compose and values files for Helm deployments. Key configuration aspects include data sources, storage, and authentication.\n\n### Environment Variables (Docker Compose)\n\nEdit the `deploy/docker-compose.yml` file or create a `.env` file in the root directory. Common variables:\n\n* `OT_STORAGE_RETENTION_DAYS`: Number of days to retain data (e.g., `30`). Default is `7`.\n* `OT_API_PORT`: Port for the API service (e.g., `8081`). Default is `8081`.\n* `OT_WEB_PORT`: Port for the Web UI service (e.g., `8080`). Default is `8080`.\n* `OT_AUTH_ENABLED`: Set to `true` to enable user authentication. Default is `false`.\n* `OT_AUTH_JWT_SECRET`: Secret key for JWT token generation (required if `OT_AUTH_ENABLED=true`).\n\nExample `.env`:\n```dotenv\nOT_STORAGE_RETENTION_DAYS=90\nOT_AUTH_ENABLED=true\nOT_AUTH_JWT_SECRET=your_super_secret_jwt_key_here\n```\n\n### Helm Values (Kubernetes)\n\nFor Kubernetes, configuration is managed via the `values.yaml` file or by passing `--set` flags during `helm install` or `helm upgrade`.\n\nCreate a custom `my-values.yaml` file:\n```yaml\nomnitrail-core:\n storage:\n retentionDays: 90\nomnitrail-web:\n service:\n type: LoadBalancer\nomnitrail-api:\n auth:\n enabled: true\n jwtSecret: "your_super_secret_jwt_key_here"\n```\n\nThen install with:\n```bash\nhelm install omnitrail omnitrail/omnitrail -n omnitrail -f my-values.yaml\n```\n\n### Data Source Configuration\n\nOmniTrail agents and SDKs are configured separately to point to the OmniTrail ingestion endpoint. For example, an `omnitrail-agent` configuration might look like:\n\n```yaml\n# /etc/omnitrail-agent/config.yaml\ningestion_url: "http://omnitrail-api.omnitrail.svc.cluster.local:8081/api/v1/ingest"\nmetrics:\n enabled: true\n collect_interval: 15s\nlogs:\n enabled: true\n paths:\n - /var/log/*.log\n```\nRefer to the [Configuration Guide](https://docs.omnitrail.io/configuration) for a complete list of configurable parameters.',
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# [1, 384] [3, 384]
# Get the similarity scores for the embeddings
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[ 0.8570, -0.0762, 0.1336]])<!--
Direct Usage (Transformers)
<details><summary>Click to see the direct usage in Transformers</summary>
</details> -->
<!--
Downstream Usage (Sentence Transformers)
You can finetune this model on your own dataset.
<details><summary>Click to expand</summary>
</details> -->
<!--
Out-of-Scope Use
List how the model may foreseeably be misused and address what users ought not to do with the model. -->
Evaluation
Metrics
Triplet
- Dataset:
gooqa-dev - Evaluated with <code>TripletEvaluator</code>
<!--
Bias, Risks and Limitations
What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model. -->
<!--
Recommendations
What are recommendations with respect to the foreseeable issues? For example, filtering explicit content. -->
Training Details
Training Dataset
itprojectdocs
- Dataset: it_project_docs at 1ac9a47
- Size: 8,019 training samples
- Columns: <code>question</code> and <code>answer</code>
- Approximate statistics based on the first 1000 samples: | | question | answer | |:--------|:----------------------------------------------------------------------------------|:------------------------------------------------------------------------------------| | type | string | string | | details | <ul><li>min: 9 tokens</li><li>mean: 18.71 tokens</li><li>max: 45 tokens</li></ul> | <ul><li>min: 17 tokens</li><li>mean: 202.1 tokens</li><li>max: 256 tokens</li></ul> |
- Samples: | question | answer | |:---------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | <code>What database is recommended for the AetherMap project?</code> | <code>### Prerequisites<br>To run AetherMap, you will need:<br> Operating System: Linux (Ubuntu 20.04+, CentOS 7+, RHEL 8+), macOS. Windows is supported via WSL2.<br> Docker & Docker Compose: Recommended for containerized deployment (version 20.10+ and 1.29+ respectively).<br> Go: Version 1.20+ (if building from source).<br> Node.js & npm/yarn: Version 18+ (if developing the web UI or building from source).<br> Database: PostgreSQL 12+ (for persistent storage of configuration, historical data, and discovered topology). A local SQLite database can be used for quick testing.<br> Minimum Hardware: 4 vCPUs, 8GB RAM, 50GB SSD storage (for small deployments). Larger deployments will require more resources.</code> | | <code>What container runtime is necessary for the CodeRun project to function?</code> | <code>## Installation<br><br>CodeRun is designed for deployment in Linux environments, leveraging containerization for its core functionality. It can be deployed as a standalone service or integrated into existing infrastructure. This section outlines the various methods to get CodeRun up and running.<br><br>Regardless of the installation method, CodeRun requires a compatible container runtime (like Docker) to be installed and properly configured on the host system. It's recommended to run CodeRun on a dedicated server or VM for optimal performance and security isolation.</code> | | <code>How do I configure CoreForge for a new project using the
coreforge.yamlfile?</code> | <code>## Configuration<br><br>CoreForge uses acoreforge.yamlfile (orcoreforge.json) in your project directory for global settings and provider configurations. Provider-specific credentials are typically managed via environment variables or cloud provider CLI configurations.<br><br>Example `coreforge.yaml`:<br><br>``yaml<br># coreforge.yaml<br><br>project_name: "MyWebAppInfrastructure"<br>state_backend:<br> type: "s3" # or "local", "gcs", "azureblob"<br> config:<br> bucket: "coreforge-state-bucket-123"<br> region: "us-east-1"<br> key_prefix: "my-web-app/"<br><br>providers:<br> aws:<br> region: "us-east-1"<br> # AWS credentials typically from environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)<br> kubernetes:<br> kubeconfig_path: "~/.kube/config"<br> context: "my-cluster-context"<br><br>plugins_dir: "./plugins"<br>log_level: "info"<br>`<br><br>* **projectname`**: A unique identifier for your infrastructure project.<br>* **`statebackend**: Defines where CoreForge stores its state file. Options includelocal` (for developme...</code> | - Loss: <code>MultipleNegativesRankingLoss</code> with these parameters:
{
"scale": 20.0,
"similarity_fct": "cos_sim",
"gather_across_devices": false
}Evaluation Dataset
itprojectdocs
- Dataset: it_project_docs at 1ac9a47
- Size: 2,005 evaluation samples
- Columns: <code>question</code> and <code>answer</code>
- Approximate statistics based on the first 1000 samples: | | question | answer | |:--------|:----------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------| | type | string | string | | details | <ul><li>min: 10 tokens</li><li>mean: 18.9 tokens</li><li>max: 54 tokens</li></ul> | <ul><li>min: 17 tokens</li><li>mean: 204.79 tokens</li><li>max: 256 tokens</li></ul> |
- Samples: | question | answer | |:---------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | <code>How can I benchmark the performance of optimized code against original code using the LoopNest project?</code> | <code>## Benchmarking & Performance Analysis<br><br>LoopNest includes built-in capabilities to benchmark the performance of original versus optimized code, providing empirical evidence of its effectiveness. It also generates detailed reports to help users understand the performance impact of transformations.<br><br>### Running Benchmarks<br><br>To run benchmarks, you typically need to provide a test harness or a main function that calls the kernel you wish to benchmark. LoopNest can then compile and execute both versions.<br><br>``
bash<br>loopnest benchmark my_kernel.c --output my_kernel_optimized.c --target cpu --iterations 100 --warmup 10 --report benchmark_results.json<br>`<br><br>**Explanation of Arguments:**<br><br>*benchmark: The command to run performance comparisons.<br>*--iterations 100: Number of times to run the kernel for measurement.<br>*--warmup 10: Number of initial runs to warm up caches and stabilize CPU frequencies.<br>*--report benchmark_results.json: Generates a JSON report containing detailed timin...</code> | | <code>What kind of cloud provider credentials and database are needed before installing NestHawk?</code> | <code>### Prerequisites<br><br>Before installing NestHawk, ensure you have the following:<br><br>* **Go (1.18+):** Required if building from source.<br>* **Docker (20.10+):** Required if using Docker.<br>* **Cloud Provider Credentials:** Appropriate IAM roles or service accounts with read-only access to your cloud resources for discovery. Refer to our [Cloud Provider Setup Guide](https://example.com/nesthawk/docs/cloud-setup) for detailed instructions on configuring permissions.<br>* **PostgreSQL (12+):** A database instance for storing NestHawk's operational data and analysis results.</code> | | <code>How can a developer set the default cloud provider for LambdaShell using thels configcommand?</code> | <code>## Configuration<br><br>LambdaShell uses a global configuration file located at~/.lambdashell/config.json(or%USERPROFILE%\.lambdashell\config.jsonon Windows) to store default settings and cloud provider credentials. This file is automatically created upon your first use ofls configorls init.<br><br>### Key Configuration Options<br><br>* **Cloud Provider Credentials:** Configure profiles for AWS, Azure, and GCP. LambdaShell leverages the credentials configured in your respective cloud provider CLIs (e.g., AWS profiles, Azure service principals, GCP project IDs).<br>* **Default Region/Location:** Set a default region or location for your deployments to avoid specifying it with every command.<br>* **Log Retention Policies:** Define default log retention periods for functions.<br>* **Cost Thresholds:** Set alerts or warnings for estimated function costs.<br><br>### Exampleconfig.json<br><br>``json<br>{<br> "defaultProvider": "aws",<br> "aws": {<br> "defaultRegion": "us-east-1",<br> "profile": "default"<br> },<br>...</code> | - Loss: <code>MultipleNegativesRankingLoss</code> with these parameters:
{
"scale": 20.0,
"similarity_fct": "cos_sim",
"gather_across_devices": false
}Training Hyperparameters
Non-Default Hyperparameters
eval_strategy: epochper_device_train_batch_size: 256per_device_eval_batch_size: 256num_train_epochs: 4warmup_ratio: 0.1fp16: Truebatch_sampler: no_duplicates
All Hyperparameters
<details><summary>Click to expand</summary>
overwrite_output_dir: Falsedo_predict: Falseeval_strategy: epochprediction_loss_only: Trueper_device_train_batch_size: 256per_device_eval_batch_size: 256per_gpu_train_batch_size: Noneper_gpu_eval_batch_size: Nonegradient_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: 1.0num_train_epochs: 4max_steps: -1lr_scheduler_type: linearlr_scheduler_kwargs: {}warmup_ratio: 0.1warmup_steps: 0log_level: passivelog_level_replica: warninglog_on_each_node: Truelogging_nan_inf_filter: Truesave_safetensors: Truesave_on_each_node: Falsesave_only_model: Falserestore_callback_states_from_checkpoint: Falseno_cuda: Falseuse_cpu: Falseuse_mps_device: Falseseed: 42data_seed: Nonejit_mode_eval: Falseuse_ipex: Falsebf16: Falsefp16: Truefp16_opt_level: O1half_precision_backend: autobf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonelocal_rank: 0ddp_backend: Nonetpu_num_cores: Nonetpu_metrics_debug: Falsedebug: []dataloader_drop_last: Falsedataloader_num_workers: 0dataloader_prefetch_factor: Nonepast_index: -1disable_tqdm: Falseremove_unused_columns: Truelabel_names: Noneload_best_model_at_end: Falseignore_data_skip: Falsefsdp: []fsdp_min_num_params: 0fsdp_config: {'minnumparams': 0, 'xla': False, 'xlafsdpv2': False, 'xlafsdpgrad_ckpt': False}fsdp_transformer_layer_cls_to_wrap: Noneaccelerator_config: {'splitbatches': False, 'dispatchbatches': None, 'evenbatches': True, 'useseedablesampler': True, 'nonblocking': False, 'gradientaccumulationkwargs': None}deepspeed: Nonelabel_smoothing_factor: 0.0optim: adamwtorchfusedoptim_args: Noneadafactor: Falsegroup_by_length: Falselength_column_name: lengthddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falsedataloader_pin_memory: Truedataloader_persistent_workers: Falseskip_memory_metrics: Trueuse_legacy_prediction_loop: Falsepush_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_inputs_for_metrics: Falseinclude_for_metrics: []eval_do_concat_batches: Truefp16_backend: autopush_to_hub_model_id: Nonepush_to_hub_organization: Nonemp_parameters:auto_find_batch_size: Falsefull_determinism: Falsetorchdynamo: Noneray_scope: lastddp_timeout: 1800torch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Noneinclude_tokens_per_second: Falseinclude_num_input_tokens_seen: Falseneftune_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: Falseprompts: Nonebatch_sampler: no_duplicatesmulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}
</details>
Training Logs
Framework Versions
- Python: 3.12.11
- Sentence Transformers: 5.1.0
- Transformers: 4.55.4
- PyTorch: 2.8.0+cu126
- Accelerate: 1.10.1
- Datasets: 4.0.0
- Tokenizers: 0.21.4
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{henderson2017efficient,
title={Efficient Natural Language Response Suggestion for Smart Reply},
author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
year={2017},
eprint={1705.00652},
archivePrefix={arXiv},
primaryClass={cs.CL}
}<!--
Glossary
Clearly define terms in order to be accessible across audiences. -->
<!--
Model Card Authors
Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction. -->
<!--
Model Card Contact
Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors. -->
