Feature Extraction
Transformers
Safetensors
chest2vec_embedding
text-embeddings
retrieval
radiology
chest
qwen
custom_code
Instructions to use lukeingawesome/chest2vec_4b_chest with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lukeingawesome/chest2vec_4b_chest with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="lukeingawesome/chest2vec_4b_chest", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("lukeingawesome/chest2vec_4b_chest", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download setup.py from lukeingawesome/chest2vec_4b_chest: direct link, hf CLI and curl.
- Browser
- Download file 1.45 kB
-
https://huggingface.co/lukeingawesome/chest2vec_4b_chest/resolve/main/setup.py
- Command line
-
hf download hf://lukeingawesome/chest2vec_4b_chest/setup.py
-
curl -L -o setup.py https://huggingface.co/lukeingawesome/chest2vec_4b_chest/resolve/main/setup.py
1.45 kB
| from setuptools import setup, find_packages | |
| from pathlib import Path | |
| # Read README for long description | |
| readme_file = Path(__file__).parent / "README.md" | |
| long_description = readme_file.read_text(encoding="utf-8") if readme_file.exists() else "" | |
| setup( | |
| name="chest2vec", | |
| version="4.0.0", | |
| description="Section-aware embeddings for chest X-ray reports", | |
| long_description=long_description, | |
| long_description_content_type="text/markdown", | |
| author="Chest2Vec Team", | |
| url="https://github.com/chest2vec/chest2vec", | |
| packages=find_packages(), | |
| py_modules=["chest2vec"], | |
| include_package_data=True, | |
| package_data={"": ["__init__.py"]}, | |
| install_requires=[ | |
| "transformers==4.57.3", | |
| "trl==0.9.3", | |
| "deepspeed==0.16.9", | |
| "peft", | |
| "huggingface_hub", | |
| "bitsandbytes", | |
| "accelerate", | |
| "numpy", | |
| ], | |
| python_requires=">=3.8", | |
| classifiers=[ | |
| "Development Status :: 4 - Beta", | |
| "Intended Audience :: Developers", | |
| "Intended Audience :: Science/Research", | |
| "License :: OSI Approved :: Apache Software License", | |
| "Programming Language :: Python :: 3", | |
| "Programming Language :: Python :: 3.8", | |
| "Programming Language :: Python :: 3.9", | |
| "Programming Language :: Python :: 3.10", | |
| "Programming Language :: Python :: 3.11", | |
| "Topic :: Scientific/Engineering :: Artificial Intelligence", | |
| ], | |
| ) | |