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

FlagAlpha
/
Llama2-Chinese-13b-Chat

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

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

  • Libraries
  • Transformers

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

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("question-answering", model="FlagAlpha/Llama2-Chinese-13b-Chat")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("FlagAlpha/Llama2-Chinese-13b-Chat")
    model = AutoModelForCausalLM.from_pretrained("FlagAlpha/Llama2-Chinese-13b-Chat", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
Llama2-Chinese-13b-Chat
3.03 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
wuyongyu's picture
wuyongyu
Create README.md
7158604 about 3 years ago
  • .gitattributes
    1.52 kB
    initial commit about 3 years ago
  • README.md
    1.51 kB
    Create README.md about 3 years ago