language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

Confusion between vue's `<template>` element and native `<template>` element

Open so1ve opened this issue 1 year ago • 0 comments

Vue - Official extension or vue-tsc version

2.0.24

VSCode version

1.91

Vue version

3.4.21

TypeScript version

5.5.1

System Info

No response

Steps to reproduce

Type <template inside template

What is expected?

Only 1 completion item

What is actually happening?

Two

Link to minimal reproduction

No response

Any additional comments?

No response

so1ve avatar Jul 09 '24 10:07 so1ve

My first time ever using vLLM and it happens that I wanted to use it with phi-3, sure enough, same issue. Here is my repro too:

Python: 3.10 CUDA: 12.2

from vllm import SamplingParams, LLM

prompts = [
    "Hello, my name is",
    "The president of the United States is",
    "The capital of France is",
    "The future of AI is",
]
sampling_params = SamplingParams(temperature=0.8, top_p=0.95)

llm = LLM(model="microsoft/Phi-3-mini-128k-instruct")

outputs = llm.generate(prompts, sampling_params)

# Print the outputs.
for output in outputs:
    prompt = output.prompt
    generated_text = output.outputs[0].text
    print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
Traceback (most recent call last):
  File "/home/nevercast/vllm/vllm_run.py", line 11, in <module>
    llm = LLM(model="microsoft/Phi-3-mini-128k-instruct")
  File "/home/nevercast/vllm/.venv/lib/python3.10/site-packages/vllm/entrypoints/llm.py", line 144, in __init__
    self.llm_engine = LLMEngine.from_engine_args(
  File "/home/nevercast/vllm/.venv/lib/python3.10/site-packages/vllm/engine/llm_engine.py", line 336, in from_engine_args
    engine_config = engine_args.create_engine_config()
  File "/home/nevercast/vllm/.venv/lib/python3.10/site-packages/vllm/engine/arg_utils.py", line 630, in create_engine_config
    model_config = ModelConfig(
  File "/home/nevercast/vllm/.venv/lib/python3.10/site-packages/vllm/config.py", line 137, in __init__
    self.hf_config = get_config(self.model, trust_remote_code, revision,
  File "/home/nevercast/vllm/.venv/lib/python3.10/site-packages/vllm/transformers_utils/config.py", line 48, in get_config
    raise e
  File "/home/nevercast/vllm/.venv/lib/python3.10/site-packages/vllm/transformers_utils/config.py", line 33, in get_config
    config = AutoConfig.from_pretrained(
  File "/home/nevercast/vllm/.venv/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 989, in from_pretrained
    return config_class.from_dict(config_dict, **unused_kwargs)
  File "/home/nevercast/vllm/.venv/lib/python3.10/site-packages/transformers/configuration_utils.py", line 772, in from_dict
    config = cls(**config_dict)
  File "/home/nevercast/vllm/.venv/lib/python3.10/site-packages/transformers/models/phi3/configuration_phi3.py", line 158, in __init__
    self._rope_scaling_validation()
  File "/home/nevercast/vllm/.venv/lib/python3.10/site-packages/transformers/models/phi3/configuration_phi3.py", line 185, in _rope_scaling_validation
    raise ValueError(f"`rope_scaling`'s type field must be one of ['su', 'yarn'], got {rope_scaling_type}")
ValueError: `rope_scaling`'s type field must be one of ['su', 'yarn'], got longrope

nevercast avatar Jul 03 '24 10:07 nevercast

upgrade to the latest vllm v0.5.1. worked for me!

sanjay920 avatar Jul 09 '24 06:07 sanjay920

This issue has been automatically marked as stale because it has not had any activity within 90 days. It will be automatically closed if no further activity occurs within 30 days. Leave a comment if you feel this issue should remain open. Thank you!

github-actions[bot] avatar Oct 25 '24 02:10 github-actions[bot]

This issue has been automatically closed due to inactivity. Please feel free to reopen if you feel it is still relevant. Thank you!

github-actions[bot] avatar Nov 24 '24 02:11 github-actions[bot]