Upload tencent_WeDLM-8B-Instruct_0.txt with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657```CODE: # Use a pipeline as a high-level helperfrom transformers import pipeline
pipe = pipeline("text-generation", model="tencent/WeDLM-8B-Instruct", trust_remote_code=True)messages = [ {"role": "user", "content": "Who are you?"},]pipe(messages)```
ERROR: Traceback (most recent call last): File "/tmp/tencent_WeDLM-8B-Instruct_0UKqg56.py", line 30, in <module> pipe(messages) ~~~~^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/ed9bef2612ecc286/lib/python3.13/site-packages/transformers/pipelines/text_generation.py", line 325, in __call__ return super().__call__(Chat(text_inputs), **kwargs) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/ed9bef2612ecc286/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1467, in __call__ return self.run_single(inputs, preprocess_params, forward_params, postprocess_params) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/ed9bef2612ecc286/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1474, in run_single model_outputs = self.forward(model_inputs, **forward_params) File "/tmp/.cache/uv/environments-v2/ed9bef2612ecc286/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1374, in forward model_outputs = self._forward(model_inputs, **forward_params) File "/tmp/.cache/uv/environments-v2/ed9bef2612ecc286/lib/python3.13/site-packages/transformers/pipelines/text_generation.py", line 432, in _forward output = self.model.generate(input_ids=input_ids, attention_mask=attention_mask, **generate_kwargs) File "/tmp/.cache/uv/environments-v2/ed9bef2612ecc286/lib/python3.13/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context return func(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/ed9bef2612ecc286/lib/python3.13/site-packages/transformers/generation/utils.py", line 2564, in generate result = decoding_method( self, ...<5 lines>... **model_kwargs, ) File "/tmp/.cache/uv/environments-v2/ed9bef2612ecc286/lib/python3.13/site-packages/transformers/generation/utils.py", line 2784, in _sample outputs = self(**model_inputs, return_dict=True) File "/tmp/.cache/uv/environments-v2/ed9bef2612ecc286/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1775, in _wrapped_call_impl return self._call_impl(*args, **kwargs) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/ed9bef2612ecc286/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1786, in _call_impl return forward_call(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/ed9bef2612ecc286/lib/python3.13/site-packages/transformers/utils/generic.py", line 918, in wrapper output = func(self, *args, **kwargs) File "/tmp/.cache/huggingface/modules/transformers_modules/tencent/WeDLM_hyphen_8B_hyphen_Instruct/c1e0373ec7e11bc27321a548ea54ea9728b0d9c0/modeling_wedlm.py", line 917, in forward outputs = self.model( input_ids=input_ids, ...<9 lines>... **kwargs, ) File "/tmp/.cache/uv/environments-v2/ed9bef2612ecc286/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1775, in _wrapped_call_impl return self._call_impl(*args, **kwargs) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/ed9bef2612ecc286/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1786, in _call_impl return forward_call(*args, **kwargs)TypeError: check_model_inputs.<locals>.wrapped_fn() got an unexpected keyword argument 'input_ids'tencent_WeDLM-8B-Instruct_0.txtAdded+57