microsoft/UserRepGen-4B开源了新模型
根据官方来源,microsoft/UserRepGen-4B开源了新模型。详细信息请以原始来源为准。
证据来源
查看来源摘录
Microsoft microsoft/UserRepGen-4B microsoft/UserRepGen-4B https://huggingface.co/microsoft/UserRepGen-4B
查看来源摘录
microsoft/UserRepGen-4B · Hugging Face Hugging Face (https://huggingface.co/) Models (https://huggingface.co/models) Datasets (https://huggingface.co/datasets) Spaces (https://huggingface.co/spaces) Buckets new (https://huggingface.co/storage) Docs (https://huggingface.co/docs) Enterprise (https://huggingface.co/enterprise) Pricing (https://huggingface.co/pricing) Website Tasks (https://huggingface.co/tasks) HuggingChat (https://huggingface.co/chat) Collections (https://huggingface.co/collections) Languages (https://huggingface.co/languages) Organizations (https://huggingface.co/organizations) Community Blog (https://huggingface.co/blog) Posts (https://huggingface.co/posts) Daily Papers (https://huggingface.co/papers) Hardware (https://huggingface.co/hardware) Learn (https://huggingface.co/learn) Discord (https://huggingface.co/join/discord) Forum (https://discuss.huggingface.co/) GitHub (https://github.com/huggingface) Solutions Team & Enterprise (https://huggingface.co/enterprise) Hugging Face PRO (https://huggingface.co/pro) Enterprise Support (https://huggingface.co/support) Inference Providers (https://huggingface.co/inference/models) Inference Endpoints (https://huggingface.co/inference-endpoints) Storage Buckets (https://huggingface.co/storage) Log In (https://huggingface.co/login) Sign Up (https://huggingface.co/join) (https://huggingface.co/microsoft) microsoft (https://huggingface.co/microsoft) / UserRepGen-4B (https://huggingface.co/microsoft/UserRepGen-4B) Like 10 Follow Microsoft 22.6k Text Generation (https://huggingface.co/models?pipeline_tag=text-generation) Transformers (https://huggingface.co/models?library=transformers) Safetensors (https://huggingface.co/models?library=safetensors) English (https://huggingface.co/models?language=en) qwen3_5 (https://huggingface.co/models?other=qwen3_5) image-text-to-text (https://huggingface.co/models?other=image-text-to-text) user-representation (https://huggingface.co/models?other=user-representation) user-simulation (https://huggingface.co/models?other=user-simulation) simulation (https://huggingface.co/models?other=simulation) multi-turn (https://huggingface.co/models?other=multi-turn) conversational (https://huggingface.co/models?other=conversational) License: mit Model card (https://huggingface.co/microsoft/UserRepGen-4B) Files Files and versions xet (https://huggingface.co/microsoft/UserRepGen-4B/tree/main) Community 1 (https://huggingface.co/microsoft/UserRepGen-4B/discussions) Deploy Copy to bucket new Use this model Instructions to use microsoft/UserRepGen-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started. Libraries Transformers (https://huggingface.co/microsoft/UserRepGen-4B?library=transformers) How to use microsoft/UserRepGen-4B with Transformers: # Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="microsoft/UserRepGen-4B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages) # pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("microsoft/UserRepGen-4B") model = AutoModelForMultimodalLM.from_pretrained("microsoft/UserRepGen-4B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_n
来自 星盘大模型百科