Daily Dev Tips

At Inference Time, Use sourceTensor.clone().detach() Instead of torch.tensor(sourceTensor)

NumPy/PyTorch

At Inference Time, Use sourceTensor.clone().detach() Instead of torch.tensor(sourceTensor)

Optimizing PyTorch Tensor Operations: Understanding and Resolving a Warning Message Hello! This is the Qualiteg Product Development Team. While working with PyTorch 1.13, we ran into the following warning message: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach(

By Qualiteg Product Development Team
[ChatStream] Pin the Revision to Guard Against Unexpected Changes in Input/Output Prompts

Daily Dev Tips

[ChatStream] Pin the Revision to Guard Against Unexpected Changes in Input/Output Prompts

Hello, this is the Product Development Department at Qualiteg Inc. During Japan's Golden Week holidays, the tokenizer.json of microsoft/Phi-3-mini-128k-instruct was changed. As a result, prompt parsing failed and chat streaming stopped working. Specifically, the following change was made: https://huggingface.co/microsoft/Phi-3-mini-128k-instruct/commit/8a362e755d2faf8cec2bf98850ce2216023d178a Originally,

By Qualiteg Product Development Team