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

zhihan1996
/
DNABERT-S

Feature Extraction
Transformers
PyTorch
bert
biology
genomics
custom_code
text-embeddings-inference
Model card Files Files and versions
xet
Community
3

Instructions to use zhihan1996/DNABERT-S with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use zhihan1996/DNABERT-S with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="zhihan1996/DNABERT-S", trust_remote_code=True)
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("zhihan1996/DNABERT-S", trust_remote_code=True)
    model = AutoModel.from_pretrained("zhihan1996/DNABERT-S", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
DNABERT-S
469 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 4 commits
zhihan1996's picture
zhihan1996
Update README.md
00e47f9 verified 11 months ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    54 Bytes
    Update README.md 11 months ago
  • bert_layers.py
    40.8 kB
    Fix error loading model with AutoModel (#1) almost 2 years ago
  • bert_padding.py
    6.1 kB
    Upload 9 files over 2 years ago
  • config.json
    1.03 kB
    Upload 9 files over 2 years ago
  • configuration_bert.py
    1.02 kB
    Upload 9 files over 2 years ago
  • flash_attn_triton.py
    42.7 kB
    Upload 9 files over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.FloatStorage"

    What is a pickle import?

    468 MB
    xet
    Upload 9 files over 2 years ago
  • special_tokens_map.json
    125 Bytes
    Upload 9 files over 2 years ago
  • tokenizer.json
    168 kB
    Upload 9 files over 2 years ago
  • tokenizer_config.json
    268 Bytes
    Upload 9 files over 2 years ago