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

internlm
/
internlm-xcomposer2-4khd-7b

Visual Question Answering
Transformers
PyTorch
internlmxcomposer2
text-generation
custom_code
Model card Files Files and versions
xet
Community
14

Instructions to use internlm/internlm-xcomposer2-4khd-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use internlm/internlm-xcomposer2-4khd-7b with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("visual-question-answering", model="internlm/internlm-xcomposer2-4khd-7b", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("internlm/internlm-xcomposer2-4khd-7b", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Update build_mlp.py

#14 opened about 2 years ago by
unsubscribe

Faster mask_human_targets implementation

#13 opened about 2 years ago by
Godricly

getModel

#11 opened about 2 years ago by
lsqingfeng

fix bfloat mismatch bug when model loading using half()

#10 opened about 2 years ago by
secularbird

Adding `safetensors` variant of this model

#9 opened over 2 years ago by
SFconvertbot

Multi image query

#8 opened over 2 years ago by
rjmehta

Multi GPU Inference

๐Ÿ‘ 1
#7 opened over 2 years ago by
rjmehta

try your code snippet

#6 opened over 2 years ago by
yuanze1024

TypeError: forward() takes 2 positional arguments but 3 were given

๐Ÿ‘ 4
1
#5 opened over 2 years ago by
prabhatk579

Adding `safetensors` variant of this model

#4 opened over 2 years ago by
SFconvertbot

Adding `safetensors` variant of this model

#1 opened over 2 years ago by
SFconvertbot
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs