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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

ctheodoris
/
Geneformer

Fill-Mask
Transformers
Safetensors
bert
single-cell
genomics
Model card Files Files and versions
xet
Community
594

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

  • Libraries
  • Transformers

    How to use ctheodoris/Geneformer with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("fill-mask", model="ctheodoris/Geneformer")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMaskedLM
    
    tokenizer = AutoTokenizer.from_pretrained("ctheodoris/Geneformer")
    model = AutoModelForMaskedLM.from_pretrained("ctheodoris/Geneformer", device_map="auto")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
Geneformer / geneformer /mtl
41.4 kB
Ctrl+K
Ctrl+K
  • 21 contributors
History: 9 commits
ctheodoris's picture
ctheodoris
madhavanvenkatesh's picture
madhavanvenkatesh
dictionaries from parent dir (#405)
85f295e verified about 2 years ago
  • __init__.py
    18 Bytes
    remove token dictionary and unpickling from init (#403) about 2 years ago
  • collators.py
    2.86 kB
    dictionaries from parent dir (#405) about 2 years ago
  • data.py
    5.48 kB
    precommit formatting about 2 years ago
  • eval_utils.py
    3.71 kB
    fix imports mtl/eval_utils about 2 years ago
  • imports.py
    1.15 kB
    precommit formatting about 2 years ago
  • model.py
    4.42 kB
    precommit formatting about 2 years ago
  • optuna_utils.py
    850 Bytes
    precommit formatting about 2 years ago
  • train.py
    12.8 kB
    fixed bug related to dynamic ranges in dictionary with 'min' and 'max' value mismatch in optuna suggest fn (#380) about 2 years ago
  • train_utils.py
    5.45 kB
    precommit formatting about 2 years ago
  • utils.py
    4.6 kB
    comment out "def save_model_without_heads(original_model_save_directory)"; redundant for ISP/Emb extractor (#382) about 2 years ago