Sentence Similarity
sentence-transformers
Safetensors
feature-extraction
dense
Generated from Trainer
dataset_size:5749
loss:CosineSimilarityLoss
Eval Results (legacy)
Instructions to use spartan8806/atles with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use spartan8806/atles with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("spartan8806/atles") sentences = [ "Red sports car racing down track.", "A red sports car driving quickly on a track.", "Mali's Interim President Sworn Into Office", "Iran, world powers pledge new nuclear talks" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download tests/test_document_fix.py from spartan8806/atles: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/spartan8806/atles/resolve/main/tests/test_document_fix.py
- Command line
-
hf download hf://spartan8806/atles/tests/test_document_fix.py
-
curl -L -o test_document_fix.py https://huggingface.co/spartan8806/atles/resolve/main/tests/test_document_fix.py
1.18 kB
| #!/usr/bin/env python3 | |
| """ | |
| Quick test to verify document generation with new model name | |
| """ | |
| import sys | |
| import os | |
| sys.path.append(os.path.join(os.path.dirname(__file__), 'atles')) | |
| from document_generation_system import DocumentGenerationSystem, DocumentRequest, DocumentType, Priority | |
| def test_document_generation(): | |
| print("Testing document generation with atles-qwen2.5:7b-enhanced...") | |
| # Initialize document system | |
| doc_system = DocumentGenerationSystem() | |
| # Create a simple test request | |
| request = DocumentRequest( | |
| title="System Status Test", | |
| document_type=DocumentType.REPORT, | |
| priority=Priority.MEDIUM, | |
| description="Test document to verify model integration" | |
| ) | |
| print(f"Creating document request: {request.title}") | |
| # Submit request | |
| request_id = doc_system.submit_request(request) | |
| print(f"Request submitted with ID: {request_id}") | |
| # Check status | |
| status = doc_system.get_request_status(request_id) | |
| print(f"Request status: {status}") | |
| print("Test completed - check atles_generated_documents/ for output") | |
| if __name__ == "__main__": | |
| test_document_generation() | |