Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

lukeingawesome
/
llm2vec4cxr

Feature Extraction
Transformers
Safetensors
sentence-transformers
English
llama
text-embeddings
llm2vec
medical
chest-xray
radiology
clinical-nlp
custom_code
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use lukeingawesome/llm2vec4cxr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use lukeingawesome/llm2vec4cxr with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="lukeingawesome/llm2vec4cxr", trust_remote_code=True)
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("lukeingawesome/llm2vec4cxr", trust_remote_code=True)
    model = AutoModel.from_pretrained("lukeingawesome/llm2vec4cxr", trust_remote_code=True)
  • sentence-transformers

    How to use lukeingawesome/llm2vec4cxr with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("lukeingawesome/llm2vec4cxr", trust_remote_code=True)
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Notebooks
  • Google Colab
  • Kaggle
llm2vec4cxr
2.53 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 28 commits
lukeingawesome's picture
lukeingawesome
Update README.md
866a0db verified 5 months ago
  • llm2vec4cxr
    init commit about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    9.53 kB
    Update README.md 5 months ago
  • config.json
    1.27 kB
    Update config to use custom model class 9 months ago
  • llm2vec_config.json
    117 Bytes
    Update model with corrected safetensors metadata and proper latent attention loading 9 months ago
  • llm2vec_wrapper.py
    16.7 kB
    Create llm2vec_wrapper.py 8 months ago
  • model.safetensors
    2.52 GB
    xet
    Update model with corrected safetensors metadata and proper latent attention loading 9 months ago
  • modeling_llm2vec4cxr.py
    6.08 kB
    Fix embed_mask for texts without separator (use entire text, not empty) 6 months ago
  • pooling_latent.py
    3.26 kB
    Add vendored pooling_latent.py module 6 months ago
  • requirements.txt
    301 Bytes
    Upload LLM2Vec4CXR fine-tuned model 9 months ago
  • special_tokens_map.json
    325 Bytes
    Upload LLM2Vec4CXR fine-tuned model 9 months ago
  • tokenizer.json
    9.09 MB
    Upload LLM2Vec4CXR fine-tuned model 9 months ago
  • tokenizer_config.json
    54.6 kB
    Upload LLM2Vec4CXR fine-tuned model 9 months ago
  • usage_example.py
    7.98 kB
    Upload LLM2Vec4CXR fine-tuned model 9 months ago