Notebooks
M
Microsoft
AIPC NPU DEMO

AIPC NPU DEMO

code03.InferenceAIPCmicrosoft-phi-cookbook
[1]
[2]
[3]
Compiling model microsoft/Phi-3-mini-4k-instruct NPUDtype(name='int4', bits=4, min=-8, max=7, torch_dtype=torch.int8) for the NPU
c:\ProgramData\miniforge3\envs\pydev\lib\site-packages\huggingface_hub\file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(
`flash-attention` package not found, consider installing for better performance: No module named 'flash_attn'.
Current `flash-attention` does not support `window_size`. Either upgrade or use `attn_implementation='eager'`.
Loading checkpoint shards:   0%|          | 0/2 [00:00<?, ?it/s]
Exporting model microsoft/Phi-3-mini-4k-instruct to cache\models\microsoft_Phi-3-mini-4k-instruct_5159f8a4e1e2f2ef78fb6e448b4e0921f41275185da4e2b8dc6b4838ee810541_v1.2.0
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
[4]
[5]
[7]
C<|system|> You are a helpful AI assistant.<|end|><|user|> Can you introduce yourself?<|end|><|assistant|> Certainly! I'm an AI language model developed by Microsoft, known as "GPT-1 to GPT-4". My purpose is to assist and provide information by processing and generating text based on theiven inputs. I'm capable of performing a wide range of tasks, such as answering questions, providing explanations, offering suggestions, and even engaging in casual conversations. My abilities are continuously improving, and I'm designed to learn from interactions to provide the best possible assistance. However, I don't have a physical presence or personal experiences. My responses are generated based on patterns in data.<|end|>