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

BidirLM
/
BidirLM-270M-Base

Fill-Mask
Transformers
Safetensors
bidirlm
bidirectional
custom_code
Model card Files Files and versions
xet
Community

Instructions to use BidirLM/BidirLM-270M-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use BidirLM/BidirLM-270M-Base with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("fill-mask", model="BidirLM/BidirLM-270M-Base", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModelForMaskedLM
    model = AutoModelForMaskedLM.from_pretrained("BidirLM/BidirLM-270M-Base", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
BidirLM-270M-Base
558 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
TheoDB's picture
TheoDB
Fix tokenizer adding a duplicate BOS on transformers 5.x
afaec98 verified 1 day ago
  • .gitattributes
    1.57 kB
    Upload BidirLM-270M-Base about 2 months ago
  • README.md
    2.85 kB
    Add transformers v5 support on main; persist full sliding_window; tidy auto_map 1 day ago
  • config.json
    1.75 kB
    Add transformers v5 support on main; persist full sliding_window; tidy auto_map 1 day ago
  • configuration_bidirlm.py
    18.6 kB
    Add transformers v5 support on main; persist full sliding_window; tidy auto_map 1 day ago
  • model.safetensors
    536 MB
    xet
    Upload BidirLM-270M-Base about 2 months ago
  • modeling_bidirlm.py
    47.2 kB
    Add transformers v5 support on main; persist full sliding_window; tidy auto_map 1 day ago
  • tokenizer.json
    16 MB
    xet
    Fix tokenizer adding a duplicate BOS on transformers 5.x 1 day ago
  • tokenizer.model
    4.69 MB
    xet
    Upload BidirLM-270M-Base about 2 months ago
  • tokenizer_config.json
    1.16 MB
    Upload BidirLM-270M-Base about 2 months ago