inference icon indicating copy to clipboard operation
inference copied to clipboard

jina-clip-v2 启动出错

Open luckfu opened this issue 1 year ago • 11 comments

System Info / 系統信息

CUDA 12.8,ubuntu 22.04

Running Xinference with Docker? / 是否使用 Docker 运行 Xinfernece?

  • [x] docker / docker
  • [ ] pip install / 通过 pip install 安装
  • [ ] installation from source / 从源码安装

Version info / 版本信息

docker 1.3.0

The command used to start Xinference / 用以启动 xinference 的命令

docker 启动服务 xinference launch --model-name jina-clip-v2 --model_path /models/jinaai/jina-clip-v2 --model-type embedding

Reproduction / 复现过程

启动报错:

2025-04-07 04:17:20,136 xinference.core.worker 298 INFO     [request df0da3aa-13a1-11f0-9631-005056ab649a] Enter launch_builtin_model, args: <xinf
erence.core.worker.WorkerActor object at 0x7f0f853694e0>, kwargs: model_uid=jina-clip-v2-test-0,model_name=jina-clip-v2,model_size_in_billions=Non
e,model_format=None,quantization=None,model_engine=None,model_type=embedding,n_gpu=auto,request_limits=None,peft_model_config=None,gpu_idx=[0],dow
nload_hub=None,model_path=/models/jinaai/jina-clip-v2
2025-04-07 04:17:20,136 xinference.core.worker 298 INFO     You specify to launch the model: jina-clip-v2 on GPU index: [0] of the worker: 0.0.0.0
:20903, xinference will automatically ignore the `n_gpu` option.
2025-04-07 04:17:25,512 xinference.core.model 2736 INFO     Start requests handler.
2025-04-07 04:17:25,823 transformers.configuration_utils 2736 INFO     loading configuration file /models/jinaai/jina-clip-v2/config.json
loading configuration file /models/jinaai/jina-clip-v2/config.json
2025-04-07 04:17:25,830 transformers.configuration_utils 2736 INFO     loading configuration file /models/jinaai/jina-clip-v2/config.json
loading configuration file /models/jinaai/jina-clip-v2/config.json
2025-04-07 04:17:25,832 transformers.configuration_utils 2736 INFO     Model config JinaCLIPConfig {
  "_commit_hash": null,
  "_name_or_path": "/models/jinaai/jina-clip-v2",
  "add_projections": false,
  "architectures": [
    "JinaCLIPModel"
  ],
  "auto_map": {
    "AutoConfig": "/models/jinaai/jina-clip-implementation--configuration_clip.JinaCLIPConfig",
    "AutoModel": "/models/jinaai/jina-clip-implementation--modeling_clip.JinaCLIPModel"
  },
  "initializer_factor": 1.0,
  "logit_scale_init_value": 2.6592,
  "matryoshka_dimensions": [
    32,
    64,
    128,
    256,
    512,
    768,
    1024
  ],
  "model_type": "jina_clip",
  "projection_dim": 1024,
  "text_config": {
    "_attn_implementation_autoset": false,
    "_name_or_path": "",
    "add_cross_attention": false,
    "architectures": null,
    "bad_words_ids": null,
    "begin_suppress_tokens": null,
    "bos_token_id": null,
    "chunk_size_feed_forward": 0,
    "cross_attention_hidden_size": null,
    "decoder_start_token_id": null,
    "default_instruction_task": null,
    "default_lora_task": "retrieval.query",
    "diversity_penalty": 0.0,
    "do_sample": false,
    "early_stopping": false,
    "embed_dim": 1024,
    "encoder_no_repeat_ngram_size": 0,
    "eos_token_id": null,
    "exponential_decay_length_penalty": null,
    "finetuning_task": null,
    "forced_bos_token_id": null,
    "forced_eos_token_id": null,
    "hf_model_config_kwargs": {
      "load_trained_adapters": false,
      "lora_adaptations": [
        "retrieval.query"
      ],
      "lora_alpha": 4,
      "lora_dropout_p": 0.0,
      "lora_main_params_trainable": false,
      "lora_rank": 4,
      "task_instructions": {
        "retrieval.query": "Represent the query for retrieving evidence documents: "
      },
      "use_flash_attn": true
    },
    "hf_model_name_or_path": "/models/jinaai/jina-embeddings-v3",
    "id2label": {
      "0": "LABEL_0",
      "1": "LABEL_1"
    },
    "is_decoder": false,
    "is_encoder_decoder": false,
    "label2id": {
      "LABEL_0": 0,
      "LABEL_1": 1
    },
    "length_penalty": 1.0,
    "max_length": 20,
    "min_length": 0,
    "model_type": "jina_clip_text",
    "no_repeat_ngram_size": 0,
    "num_beam_groups": 1,
    "num_beams": 1,
    "num_return_sequences": 1,
    "output_attentions": false,
    "output_hidden_states": false,
    "output_scores": false,
    "pad_token_id": null,
    "pooler_type": "mean_pooler",
    "prefix": null,
    "problem_type": null,
    "proj_bias": false,
    "proj_type": null,
    "pruned_heads": {},
    "remove_invalid_values": false,
    "repetition_penalty": 1.0,
    "return_dict": true,
    "return_dict_in_generate": false,
    "sep_token_id": null,
    "suppress_tokens": null,
    "task_specific_params": null,
    "temperature": 1.0,
    "tf_legacy_loss": false,
    "tie_encoder_decoder": false,
    "tie_word_embeddings": true,
    "tokenizer_class": null,
    "top_k": 50,
    "top_p": 1.0,
    "torch_dtype": null,
    "torchscript": false,
    "transformers_version": "4.47.0",
    "typical_p": 1.0,
    "use_bfloat16": false
  },
  "torch_dtype": "bfloat16",
  "transformers_version": null,
  "truncate_dim": null,
  "use_text_flash_attn": null,
  "use_vision_xformers": null,
  "vision_config": {
    "_attn_implementation_autoset": false,
    "_name_or_path": "",
    "add_cross_attention": false,
    "architectures": null,
    "bad_words_ids": null,
    "begin_suppress_tokens": null,
    "bos_token_id": null,
    "chunk_size_feed_forward": 0,
    "cross_attention_hidden_size": null,
    "decoder_start_token_id": null,
    "diversity_penalty": 0.0,
    "do_sample": false,
    "drop_path_rate": 0.0,
    "early_stopping": false,
    "embed_dim": 1024,
    "encoder_no_repeat_ngram_size": 0,
    "eos_token_id": null,
    "exponential_decay_length_penalty": null,
    "finetuning_task": null,
    "forced_bos_token_id": null,
    "forced_eos_token_id": null,
    "fused_layer_norm": false,
    "head_width": 64,
    "id2label": {
      "0": "LABEL_0",
      "1": "LABEL_1"
    },
    "image_size": 512,
    "intp_freq": true,
    "is_decoder": false,
    "is_encoder_decoder": false,
    "label2id": {
      "LABEL_0": 0,
      "LABEL_1": 1
    },
    "layers": 24,
    "length_penalty": 1.0,
    "ls_init_value": null,
    "max_length": 20,
    "min_length": 0,
    "mlp_ratio": 2.6667,
    "model_type": "jina_clip_vision",
    "naive_swiglu": true,
    "no_repeat_ngram_size": 0,
    "num_beam_groups": 1,
    "num_beams": 1,
    "num_return_sequences": 1,
    "output_attentions": false,
    "output_hidden_states": false,
    "output_scores": false,
    "pad_token_id": null,
    "patch_dropout": 0.1,
    "patch_size": 14,
    "post_norm": false,
    "prefix": null,
    "problem_type": null,
    "proj_type": null,
    "pruned_heads": {},
    "pt_hw_seq_len": 16,
    "qkv_bias": true,
    "remove_invalid_values": false,
    "repetition_penalty": 1.0,
    "return_dict": true,
    "return_dict_in_generate": false,
    "rope_embeddings": true,
    "sep_token_id": null,
    "subln": true,
    "suppress_tokens": null,
    "task_specific_params": null,
    "temperature": 1.0,
    "tf_legacy_loss": false,
    "tie_encoder_decoder": false,
    "tie_word_embeddings": true,
    "tokenizer_class": null,
    "top_k": 50,
    "top_p": 1.0,
    "torch_dtype": null,
    "torchscript": false,
    "transformers_version": "4.47.0",
    "typical_p": 1.0,
    "use_bfloat16": false,
    "width": 1024,
    "x_attention": true
  }
}

Model config JinaCLIPConfig {
  "_commit_hash": null,
  "_name_or_path": "/models/jinaai/jina-clip-v2",
  "add_projections": false,
  "architectures": [
    "JinaCLIPModel"
  ],
  "auto_map": {
    "AutoConfig": "/models/jinaai/jina-clip-implementation--configuration_clip.JinaCLIPConfig",
    "AutoModel": "/models/jinaai/jina-clip-implementation--modeling_clip.JinaCLIPModel"
  },
  "initializer_factor": 1.0,
  "logit_scale_init_value": 2.6592,
  "matryoshka_dimensions": [
    32,
    64,
    128,
    256,
    512,
    768,
    1024
  ],
  "model_type": "jina_clip",
  "projection_dim": 1024,
  "text_config": {
    "_attn_implementation_autoset": false,
    "_name_or_path": "",
    "add_cross_attention": false,
    "architectures": null,
    "bad_words_ids": null,
    "begin_suppress_tokens": null,
    "bos_token_id": null,
    "chunk_size_feed_forward": 0,
    "cross_attention_hidden_size": null,
    "decoder_start_token_id": null,
    "default_instruction_task": null,
    "default_lora_task": "retrieval.query",
    "diversity_penalty": 0.0,
    "do_sample": false,
    "early_stopping": false,
    "embed_dim": 1024,
    "encoder_no_repeat_ngram_size": 0,
    "eos_token_id": null,
    "exponential_decay_length_penalty": null,
    "finetuning_task": null,
    "forced_bos_token_id": null,
    "forced_eos_token_id": null,
    "hf_model_config_kwargs": {
      "load_trained_adapters": false,
      "lora_adaptations": [
        "retrieval.query"
      ],
      "lora_alpha": 4,
      "lora_dropout_p": 0.0,
      "lora_main_params_trainable": false,
      "lora_rank": 4,
      "task_instructions": {
        "retrieval.query": "Represent the query for retrieving evidence documents: "
      },
      "use_flash_attn": true
    },
    "hf_model_name_or_path": "/models/jinaai/jina-embeddings-v3",
    "id2label": {
      "0": "LABEL_0",
      "1": "LABEL_1"
    },
    "is_decoder": false,
    "is_encoder_decoder": false,
    "label2id": {
      "LABEL_0": 0,
      "LABEL_1": 1
    },
    "length_penalty": 1.0,
    "max_length": 20,
    "min_length": 0,
    "model_type": "jina_clip_text",
    "no_repeat_ngram_size": 0,
    "num_beam_groups": 1,
    "num_beams": 1,
    "num_return_sequences": 1,
    "output_attentions": false,
    "output_hidden_states": false,
    "output_scores": false,
    "pad_token_id": null,
    "pooler_type": "mean_pooler",
    "prefix": null,
    "problem_type": null,
    "proj_bias": false,
    "proj_type": null,
    "pruned_heads": {},
    "remove_invalid_values": false,
    "repetition_penalty": 1.0,
    "return_dict": true,
    "return_dict_in_generate": false,
    "sep_token_id": null,
    "suppress_tokens": null,
    "task_specific_params": null,
    "temperature": 1.0,
    "tf_legacy_loss": false,
    "tie_encoder_decoder": false,
    "tie_word_embeddings": true,
    "tokenizer_class": null,
    "top_k": 50,
    "top_p": 1.0,
    "torch_dtype": null,
    "torchscript": false,
    "transformers_version": "4.47.0",
    "typical_p": 1.0,
    "use_bfloat16": false
  },
  "torch_dtype": "bfloat16",
  "transformers_version": null,
  "truncate_dim": null,
  "use_text_flash_attn": null,
  "use_vision_xformers": null,
  "vision_config": {
    "_attn_implementation_autoset": false,
    "_name_or_path": "",
    "add_cross_attention": false,
    "architectures": null,
    "bad_words_ids": null,
    "begin_suppress_tokens": null,
    "bos_token_id": null,
    "chunk_size_feed_forward": 0,
    "cross_attention_hidden_size": null,
    "decoder_start_token_id": null,
    "diversity_penalty": 0.0,
    "do_sample": false,
    "drop_path_rate": 0.0,
    "early_stopping": false,
    "embed_dim": 1024,
    "encoder_no_repeat_ngram_size": 0,
    "eos_token_id": null,
    "exponential_decay_length_penalty": null,
    "finetuning_task": null,
    "forced_bos_token_id": null,
    "forced_eos_token_id": null,
    "fused_layer_norm": false,
    "head_width": 64,
    "id2label": {
      "0": "LABEL_0",
      "1": "LABEL_1"
    },
    "image_size": 512,
    "intp_freq": true,
    "is_decoder": false,
    "is_encoder_decoder": false,
    "label2id": {
      "LABEL_0": 0,
      "LABEL_1": 1
    },
    "layers": 24,
    "length_penalty": 1.0,
    "ls_init_value": null,
    "max_length": 20,
    "min_length": 0,
    "mlp_ratio": 2.6667,
    "model_type": "jina_clip_vision",
    "naive_swiglu": true,
    "no_repeat_ngram_size": 0,
    "num_beam_groups": 1,
    "num_beams": 1,
    "num_return_sequences": 1,
    "output_attentions": false,
    "output_hidden_states": false,
    "output_scores": false,
    "pad_token_id": null,
    "patch_dropout": 0.1,
    "patch_size": 14,
    "post_norm": false,
    "prefix": null,
    "problem_type": null,
    "proj_type": null,
    "pruned_heads": {},
    "pt_hw_seq_len": 16,
    "qkv_bias": true,
    "remove_invalid_values": false,
    "repetition_penalty": 1.0,
    "return_dict": true,
    "return_dict_in_generate": false,
    "rope_embeddings": true,
    "sep_token_id": null,
    "subln": true,
    "suppress_tokens": null,
    "task_specific_params": null,
    "temperature": 1.0,
    "tf_legacy_loss": false,
    "tie_encoder_decoder": false,
    "tie_word_embeddings": true,
    "tokenizer_class": null,
    "top_k": 50,
    "top_p": 1.0,
    "torch_dtype": null,
    "torchscript": false,
    "transformers_version": "4.47.0",
    "typical_p": 1.0,
    "use_bfloat16": false,
    "width": 1024,
    "x_attention": true
  }
}

/usr/local/lib/python3.10/dist-packages/xformers/ops/fmha/flash.py:211: FutureWarning: `torch.library.impl_abstract` was renamed to `torch.library
.register_fake`. Please use that instead; we will remove `torch.library.impl_abstract` in a future version of PyTorch.
  @torch.library.impl_abstract("xformers_flash::flash_fwd")
/usr/local/lib/python3.10/dist-packages/xformers/ops/fmha/flash.py:344: FutureWarning: `torch.library.impl_abstract` was renamed to `torch.library
.register_fake`. Please use that instead; we will remove `torch.library.impl_abstract` in a future version of PyTorch.
  @torch.library.impl_abstract("xformers_flash::flash_bwd")
2025-04-07 04:17:26,774 transformers.modeling_utils 2736 INFO     loading weights file /models/jinaai/jina-clip-v2/model.safetensors
loading weights file /models/jinaai/jina-clip-v2/model.safetensors
2025-04-07 04:17:26,803 transformers.modeling_utils 2736 INFO     Will use torch_dtype=torch.bfloat16 as defined in model's config object
Will use torch_dtype=torch.bfloat16 as defined in model's config object
2025-04-07 04:17:26,803 transformers.modeling_utils 2736 INFO     Instantiating JinaCLIPModel model under default dtype torch.bfloat16.
Instantiating JinaCLIPModel model under default dtype torch.bfloat16.
/root/.cache/huggingface/modules/transformers_modules/jina-clip-implementation/modeling_clip.py:140: UserWarning: Flash attention is not installed
. Check https://github.com/Dao-AILab/flash-attention?tab=readme-ov-file#installation-and-features for installation instructions, disabling
  warnings.warn(
2025-04-07 04:17:26,807 transformers.configuration_utils 2736 INFO     loading configuration file /models/jinaai/jina-embeddings-v3/config.json
loading configuration file /models/jinaai/jina-embeddings-v3/config.json
2025-04-07 04:17:26,813 transformers.configuration_utils 2736 INFO     loading configuration file /models/jinaai/jina-embeddings-v3/config.json
loading configuration file /models/jinaai/jina-embeddings-v3/config.json
2025-04-07 04:17:26,814 transformers.configuration_utils 2736 INFO     Model config XLMRobertaFlashConfig {
  "_name_or_path": "/models/jinaai/jina-embeddings-v3",
  "architectures": [
    "XLMRobertaModel"
  ],
  "attention_probs_dropout_prob": 0.1,
  "auto_map": {
    "AutoConfig": "/models/jinaai/xlm-roberta-flash-implementation--configuration_xlm_roberta.XLMRobertaFlashConfig",
    "AutoModel": "/models/jinaai/xlm-roberta-flash-implementation--modeling_lora.XLMRobertaLoRA",
    "AutoModelForMaskedLM": "/models/jinaai/xlm-roberta-flash-implementation--modeling_xlm_roberta.XLMRobertaForMaskedLM",
    "AutoModelForPreTraining": "/models/jinaai/xlm-roberta-flash-implementation--modeling_xlm_roberta.XLMRobertaForPreTraining"
  },
  "bos_token_id": 0,
  "classifier_dropout": null,
  "emb_pooler": null,
  "eos_token_id": 2,
  "hidden_act": "gelu",
  "hidden_dropout_prob": 0.1,
  "hidden_size": 1024,
  "initializer_range": 0.02,
  "intermediate_size": 4096,
  "layer_norm_eps": 1e-05,
  "load_trained_adapters": true,
  "lora_adaptations": [
    "retrieval.query",
    "retrieval.passage",
    "separation",
    "classification",
    "text-matching"
  ],
  "lora_alpha": 1,
  "lora_dropout_p": 0.0,
  "lora_main_params_trainable": false,
  "lora_rank": 4,
  "matryoshka_dimensions": [
    32,
    64,
    128,
    256,
    512,
    768,
    1024
  ],
  "max_position_embeddings": 8194,
  "model_type": "xlm-roberta",
  "num_attention_heads": 16,
  "num_hidden_layers": 24,
  "output_past": true,
  "pad_token_id": 1,
  "position_embedding_type": "rotary",
  "rotary_emb_base": 20000.0,
  "task_instructions": {
    "classification": "",
    "retrieval.passage": "Represent the document for retrieval: ",
    "retrieval.query": "Represent the query for retrieving evidence documents: ",
    "separation": "",
    "text-matching": ""
  },
  "torch_dtype": "bfloat16",
  "transformers_version": "4.47.0",
  "truncate_dim": null,
  "type_vocab_size": 1,
  "use_cache": true,
  "use_flash_attn": true,
  "use_reentrant": false,
  "vocab_size": 250002
}

Model config XLMRobertaFlashConfig {
  "_name_or_path": "/models/jinaai/jina-embeddings-v3",
  "architectures": [
    "XLMRobertaModel"
  ],
  "attention_probs_dropout_prob": 0.1,
  "auto_map": {
    "AutoConfig": "/models/jinaai/xlm-roberta-flash-implementation--configuration_xlm_roberta.XLMRobertaFlashConfig",
    "AutoModel": "/models/jinaai/xlm-roberta-flash-implementation--modeling_lora.XLMRobertaLoRA",
    "AutoModelForMaskedLM": "/models/jinaai/xlm-roberta-flash-implementation--modeling_xlm_roberta.XLMRobertaForMaskedLM",
    "AutoModelForPreTraining": "/models/jinaai/xlm-roberta-flash-implementation--modeling_xlm_roberta.XLMRobertaForPreTraining"
  },
  "bos_token_id": 0,
  "classifier_dropout": null,
  "emb_pooler": null,
  "eos_token_id": 2,
  "hidden_act": "gelu",
  "hidden_dropout_prob": 0.1,
  "hidden_size": 1024,
  "initializer_range": 0.02,
  "intermediate_size": 4096,
  "layer_norm_eps": 1e-05,
  "load_trained_adapters": true,
  "lora_adaptations": [
    "retrieval.query",
    "retrieval.passage",
    "separation",
    "classification",
    "text-matching"
  ],
  "lora_alpha": 1,
  "lora_dropout_p": 0.0,
  "lora_main_params_trainable": false,
  "lora_rank": 4,
  "matryoshka_dimensions": [
    32,
    64,
    128,
    256,
    512,
    768,
    1024
  ],
  "max_position_embeddings": 8194,
  "model_type": "xlm-roberta",
  "num_attention_heads": 16,
  "num_hidden_layers": 24,
  "output_past": true,
  "pad_token_id": 1,
  "position_embedding_type": "rotary",
  "rotary_emb_base": 20000.0,
  "task_instructions": {
    "classification": "",
    "retrieval.passage": "Represent the document for retrieval: ",
    "retrieval.query": "Represent the query for retrieving evidence documents: ",
    "separation": "",
    "text-matching": ""
  },
  "torch_dtype": "bfloat16",
  "transformers_version": "4.47.0",
  "truncate_dim": null,
  "type_vocab_size": 1,
  "use_cache": true,
  "use_flash_attn": true,
  "use_reentrant": false,
  "vocab_size": 250002
}

2025-04-07 04:17:26,849 transformers.modeling_utils 2736 INFO     Instantiating XLMRobertaLoRA model under default dtype torch.bfloat16.
Instantiating XLMRobertaLoRA model under default dtype torch.bfloat16.
2025-04-07 04:17:26,874 transformers.tokenization_utils_base 2736 INFO     loading file sentencepiece.bpe.model
loading file sentencepiece.bpe.model
2025-04-07 04:17:26,874 transformers.tokenization_utils_base 2736 INFO     loading file tokenizer.json
loading file tokenizer.json
2025-04-07 04:17:26,874 transformers.tokenization_utils_base 2736 INFO     loading file added_tokens.json
loading file added_tokens.json
2025-04-07 04:17:26,874 transformers.tokenization_utils_base 2736 INFO     loading file special_tokens_map.json
loading file special_tokens_map.json
2025-04-07 04:17:26,874 transformers.tokenization_utils_base 2736 INFO     loading file tokenizer_config.json
loading file tokenizer_config.json
2025-04-07 04:17:26,874 transformers.tokenization_utils_base 2736 INFO     loading file chat_template.jinja
loading file chat_template.jinja
2025-04-07 04:17:31,620 transformers.modeling_utils 2736 INFO     All model checkpoint weights were used when initializing JinaCLIPModel.

All model checkpoint weights were used when initializing JinaCLIPModel.

2025-04-07 04:17:31,620 transformers.modeling_utils 2736 INFO     All the weights of JinaCLIPModel were initialized from the model checkpoint at /
models/jinaai/jina-clip-v2.
If your task is similar to the task the model of the checkpoint was trained on, you can already use JinaCLIPModel for predictions without further
training.
All the weights of JinaCLIPModel were initialized from the model checkpoint at /models/jinaai/jina-clip-v2.
If your task is similar to the task the model of the checkpoint was trained on, you can already use JinaCLIPModel for predictions without further
training.
2025-04-07 04:17:31,686 transformers.tokenization_utils_base 2736 INFO     loading file sentencepiece.bpe.model
loading file sentencepiece.bpe.model
2025-04-07 04:17:31,686 transformers.tokenization_utils_base 2736 INFO     loading file tokenizer.json
loading file tokenizer.json
2025-04-07 04:17:31,686 transformers.tokenization_utils_base 2736 INFO     loading file added_tokens.json
loading file added_tokens.json
2025-04-07 04:17:31,686 transformers.tokenization_utils_base 2736 INFO     loading file special_tokens_map.json
loading file special_tokens_map.json
2025-04-07 04:17:31,686 transformers.tokenization_utils_base 2736 INFO     loading file tokenizer_config.json
loading file tokenizer_config.json
2025-04-07 04:17:31,687 transformers.tokenization_utils_base 2736 INFO     loading file chat_template.jinja
loading file chat_template.jinja
2025-04-07 04:17:32,251 transformers.image_processing_base 2736 INFO     loading configuration file /models/jinaai/jina-clip-v2/preprocessor_confi
g.json
loading configuration file /models/jinaai/jina-clip-v2/preprocessor_config.json
2025-04-07 04:17:32,256 transformers.image_processing_base 2736 INFO     Image processor JinaCLIPImageProcessor {
  "auto_map": {
    "AutoImageProcessor": "/models/jinaai/jina-clip-implementation--processing_clip.JinaCLIPImageProcessor",
    "AutoProcessor": "/models/jinaai/jina-clip-implementation--processing_clip.JinaCLIPProcessor"
  },
  "fill_color": 0,
  "image_processor_type": "JinaCLIPImageProcessor",
  "interpolation": "bicubic",
  "mean": [
    0.48145466,
    0.4578275,
    0.40821073
  ],
  "processor_class": "JinaCLIPProcessor",
  "resize_mode": "shortest",
  "size": 512,
  "std": [
    0.26862954,
    0.26130258,
    0.27577711
  ]
}

Image processor JinaCLIPImageProcessor {
  "auto_map": {
    "AutoImageProcessor": "/models/jinaai/jina-clip-implementation--processing_clip.JinaCLIPImageProcessor",
    "AutoProcessor": "/models/jinaai/jina-clip-implementation--processing_clip.JinaCLIPProcessor"
  },
  "fill_color": 0,
  "image_processor_type": "JinaCLIPImageProcessor",
  "interpolation": "bicubic",
  "mean": [
    0.48145466,
    0.4578275,
    0.40821073
  ],
  "processor_class": "JinaCLIPProcessor",
  "resize_mode": "shortest",
  "size": 512,
  "std": [
    0.26862954,
    0.26130258,
    0.27577711
  ]
}

2025-04-07 04:17:32,650 xinference.core.model 2736 INFO     ModelActor(jina-clip-v2-test-0) loaded
2025-04-07 04:17:32,652 xinference.core.worker 298 INFO     [request df0da3aa-13a1-11f0-9631-005056ab649a] Leave launch_builtin_model, elapsed tim
e: 12 s
`SentenceTransformer._target_device` has been deprecated, please use `SentenceTransformer.device` instead.

2025-04-07 04:18:20,698 xinference.core.model 2736 ERROR    [request 03253a00-13a2-11f0-8324-005056ab649a] Leave create_embedding, error: 'list' o
bject has no attribute 'tolist', elapsed time: 0 s
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/utils.py", line 90, in wrapped
    ret = await func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 804, in create_embedding
    return await self._call_wrapper_json(
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 565, in _call_wrapper_json
    return await self._call_wrapper("json", fn, *args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 132, in _async_wrapper
    return await fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 590, in _call_wrapper
    ret = await asyncio.to_thread(fn, *args, **kwargs)
  File "/usr/lib/python3.10/asyncio/threads.py", line 25, in to_thread
    return await loop.run_in_executor(None, func_call)
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/model/embedding/core.py", line 684, in create_embedding
    index=index, object="embedding", embedding=data.tolist()
AttributeError: 'list' object has no attribute 'tolist'
2025-04-07 04:18:20,701 xinference.api.restful_api 158 ERROR    [address=0.0.0.0:40851, pid=2736] 'list' object has no attribute 'tolist'
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/xinference/api/restful_api.py", line 1318, in create_embedding
    embedding = await model.create_embedding(body.input, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xoscar/backends/context.py", line 231, in send
    return self._process_result_message(result)
  File "/usr/local/lib/python3.10/dist-packages/xoscar/backends/context.py", line 102, in _process_result_message
    raise message.as_instanceof_cause()
  File "/usr/local/lib/python3.10/dist-packages/xoscar/backends/pool.py", line 667, in send
    result = await self._run_coro(message.message_id, coro)
  File "/usr/local/lib/python3.10/dist-packages/xoscar/backends/pool.py", line 370, in _run_coro
    return await coro
  File "/usr/local/lib/python3.10/dist-packages/xoscar/api.py", line 384, in __on_receive__
    return await super().__on_receive__(message)  # type: ignore
  File "xoscar/core.pyx", line 558, in __on_receive__
    raise ex
  File "xoscar/core.pyx", line 520, in xoscar.core._BaseActor.__on_receive__
    async with self._lock:
  File "xoscar/core.pyx", line 521, in xoscar.core._BaseActor.__on_receive__
    with debug_async_timeout('actor_lock_timeout',
  File "xoscar/core.pyx", line 526, in xoscar.core._BaseActor.__on_receive__
    result = await result
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 103, in wrapped_func
    ret = await fn(self, *args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/utils.py", line 90, in wrapped
    ret = await func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 804, in create_embedding
    return await self._call_wrapper_json(
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 565, in _call_wrapper_json
    return await self._call_wrapper("json", fn, *args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 132, in _async_wrapper
    return await fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 590, in _call_wrapper
    ret = await asyncio.to_thread(fn, *args, **kwargs)
  File "/usr/lib/python3.10/asyncio/threads.py", line 25, in to_thread
    return await loop.run_in_executor(None, func_call)
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/model/embedding/core.py", line 684, in create_embedding
    index=index, object="embedding", embedding=data.tolist()
AttributeError: [address=0.0.0.0:40851, pid=2736] 'list' object has no attribute 'tolist'
`SentenceTransformer._target_device` has been deprecated, please use `SentenceTransformer.device` instead.

2025-04-07 04:19:21,419 xinference.core.model 2736 ERROR    [request 27574562-13a2-11f0-8324-005056ab649a] Leave create_embedding, error: 'list' o
bject has no attribute 'tolist', elapsed time: 0 s
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/utils.py", line 90, in wrapped
    ret = await func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 804, in create_embedding
    return await self._call_wrapper_json(
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 565, in _call_wrapper_json
    return await self._call_wrapper("json", fn, *args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 132, in _async_wrapper
    return await fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 590, in _call_wrapper
    ret = await asyncio.to_thread(fn, *args, **kwargs)
  File "/usr/lib/python3.10/asyncio/threads.py", line 25, in to_thread
    return await loop.run_in_executor(None, func_call)
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/model/embedding/core.py", line 684, in create_embedding
    index=index, object="embedding", embedding=data.tolist()
AttributeError: 'list' object has no attribute 'tolist'
2025-04-07 04:19:21,422 xinference.api.restful_api 158 ERROR    [address=0.0.0.0:40851, pid=2736] 'list' object has no attribute 'tolist'
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/xinference/api/restful_api.py", line 1318, in create_embedding
    embedding = await model.create_embedding(body.input, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xoscar/backends/context.py", line 231, in send
    return self._process_result_message(result)
  File "/usr/local/lib/python3.10/dist-packages/xoscar/backends/context.py", line 102, in _process_result_message
    raise message.as_instanceof_cause()
  File "/usr/local/lib/python3.10/dist-packages/xoscar/backends/pool.py", line 667, in send
    result = await self._run_coro(message.message_id, coro)
  File "/usr/local/lib/python3.10/dist-packages/xoscar/backends/pool.py", line 370, in _run_coro
    return await coro
  File "/usr/local/lib/python3.10/dist-packages/xoscar/api.py", line 384, in __on_receive__
    return await super().__on_receive__(message)  # type: ignore
  File "xoscar/core.pyx", line 558, in __on_receive__
    raise ex
  File "xoscar/core.pyx", line 520, in xoscar.core._BaseActor.__on_receive__
    async with self._lock:
  File "xoscar/core.pyx", line 521, in xoscar.core._BaseActor.__on_receive__
    with debug_async_timeout('actor_lock_timeout',
  File "xoscar/core.pyx", line 526, in xoscar.core._BaseActor.__on_receive__
    result = await result
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 103, in wrapped_func
    ret = await fn(self, *args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/utils.py", line 90, in wrapped
    ret = await func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 804, in create_embedding
    return await self._call_wrapper_json(
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 565, in _call_wrapper_json
    return await self._call_wrapper("json", fn, *args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 132, in _async_wrapper
    return await fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/core/model.py", line 590, in _call_wrapper
    ret = await asyncio.to_thread(fn, *args, **kwargs)
  File "/usr/lib/python3.10/asyncio/threads.py", line 25, in to_thread
    return await loop.run_in_executor(None, func_call)
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xinference/model/embedding/core.py", line 684, in create_embedding
    index=index, object="embedding", embedding=data.tolist()
AttributeError: [address=0.0.0.0:40851, pid=2736] 'list' object has no attribute 'tolist'

Expected behavior / 期待表现

期待正常启动

luckfu avatar Apr 08 '25 02:04 luckfu

pip show sentence-transformers

See what the version is.

qinxuye avatar Apr 08 '25 03:04 qinxuye

pip show sentence-transformers

See what the version is.

Name: sentence-transformers Version: 3.4.1 Summary: State-of-the-Art Text Embeddings Home-page: https://www.SBERT.net Author: Author-email: Nils Reimers [email protected], Tom Aarsen [email protected] License: Apache 2.0 Location: /usr/local/lib/python3.10/dist-packages Requires: huggingface-hub, Pillow, scikit-learn, scipy, torch, tqdm, transformers Required-by: FlagEmbedding

luckfu avatar Apr 08 '25 04:04 luckfu

This issue is stale because it has been open for 7 days with no activity.

github-actions[bot] avatar Apr 15 '25 19:04 github-actions[bot]

This issue is stale because it has been open for 7 days with no activity.

github-actions[bot] avatar Apr 23 '25 19:04 github-actions[bot]

This issue is stale because it has been open for 7 days with no activity.

github-actions[bot] avatar May 01 '25 19:05 github-actions[bot]

Have any plans to fix this problem?

yuhanXie avatar May 07 '25 03:05 yuhanXie

any updates?

xxnuo avatar May 12 '25 00:05 xxnuo

Please take a look at this issue. @llyycchhee

qinxuye avatar May 12 '25 04:05 qinxuye

jina-clip-v2在我的设备上可以正常启动,我的虚拟环境仅使用过pip install xinference['all'],你可以看看是否已经更新到了最新版本.

qianchencc avatar May 13 '25 04:05 qianchencc

用 CPU 版本启动会出现这个问题

xxnuo avatar May 13 '25 09:05 xxnuo

I encountered the same problem. Is there a solution?

dp901205 avatar May 14 '25 09:05 dp901205