Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

litert-community
/
Nanbeige4.2-3B

Text Generation
LiteRT-LM
on-device
reasoning
Model card Files Files and versions
xet
Community

Instructions to use litert-community/Nanbeige4.2-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • LiteRT-LM

    How to use litert-community/Nanbeige4.2-3B with LiteRT-LM:

    # LiteRT-LM runs on various platforms (Android, iOS, Windows, Linux, macOS, IoT, Web/WASM)
    # and supports many APIs (C++, Python, Kotlin, Swift, JavaScript, Flutter).
    # For platform-specific integration guides, please refer to the official developer website:
    # https://ai.google.dev/edge/litert-lm
    
    # To try LiteRT-LM, the easiest way is to use our CLI tool.
    # 1. Install the LiteRT-LM CLI tool:
    pip install -U litert-lm
    
    # 2. Download and run this model locally:
    # See: https://ai.google.dev/edge/litert-lm/cli
    # A single .litertlm file in the repo is picked automatically; otherwise the CLI asks which one to run
    # (or pass its name right after the repo id).
    litert-lm run \
      --from-huggingface-repo=litert-community/Nanbeige4.2-3B \
      --prompt="Write me a poem"
  • Notebooks
  • Google Colab
  • Kaggle
Nanbeige4.2-3B
5.16 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 44 commits
mlboydaisuke's picture
mlboydaisuke
Plainer wording in the card and manifest
c14004b verified 7 days ago
  • .gitattributes
    1.63 kB
    Add model_fp32act.litertlm - same int4 weights with prefer_activation_type=fp32 declared; the GPU file. The default file emits <unk> on GPU. 3 months ago
  • README.md
    17.8 kB
    Plainer wording in the card and manifest 7 days ago
  • litertlm_manifest.json
    12.3 kB
    Plainer wording in the card and manifest 7 days ago
  • model.litertlm
    2.58 GB
    xet
    model.litertlm: weights moved to TFLiteWeights sections at the end of the file (LiteRT external weights); Android GPU needs LiteRT-LM 0.19.0 or later 18 days ago
  • model_fp32act.litertlm
    2.58 GB
    xet
    Move the externalized file from the web branch to main (TFLiteWeights sections; Android GPU needs LiteRT-LM 0.19.0 or later) 27 days ago