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

FlagAlpha
/
Llama2-Chinese-7b-Chat

Question Answering
Transformers
PyTorch
Chinese
English
llama
text-generation
text-generation-inference
Model card Files Files and versions
xet
Community
4

Instructions to use FlagAlpha/Llama2-Chinese-7b-Chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use FlagAlpha/Llama2-Chinese-7b-Chat with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("question-answering", model="FlagAlpha/Llama2-Chinese-7b-Chat")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("FlagAlpha/Llama2-Chinese-7b-Chat")
    model = AutoModelForCausalLM.from_pretrained("FlagAlpha/Llama2-Chinese-7b-Chat")
  • Notebooks
  • Google Colab
  • Kaggle
Llama2-Chinese-7b-Chat
13.5 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 4 commits
wuyongyu's picture
wuyongyu
Update README.md
9c16932 verified about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 3 years ago
  • README.md
    1.51 kB
    Update README.md about 2 years ago
  • config.json
    657 Bytes
    Upload 8 files almost 3 years ago
  • generation_config.json
    197 Bytes
    Upload 8 files almost 3 years ago
  • pytorch_model-00001-of-00002.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    9.98 GB
    xet
    Upload 8 files almost 3 years ago
  • pytorch_model-00002-of-00002.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    3.5 GB
    xet
    Upload 8 files almost 3 years ago
  • pytorch_model.bin.index.json
    26.8 kB
    Upload 8 files almost 3 years ago
  • special_tokens_map.json
    414 Bytes
    Upload 8 files almost 3 years ago
  • tokenizer.model
    500 kB
    xet
    Upload 8 files almost 3 years ago
  • tokenizer_config.json
    770 Bytes
    Upload 8 files almost 3 years ago