Transformers How to use agentsea/internlm-xcomposer2-4khd-7b-4bit with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="agentsea/internlm-xcomposer2-4khd-7b-4bit", trust_remote_code=True) # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("agentsea/internlm-xcomposer2-4khd-7b-4bit", trust_remote_code=True, dtype="auto")