Daily Dev Tips

GPU Memory Optimization in Depth: Efficient AI Image Processing and the Peculiarities of the First and Last Batches

NumPy/PyTorch

GPU Memory Optimization in Depth: Efficient AI Image Processing and the Peculiarities of the First and Last Batches

Introduction Hello! This is the Qualiteg Product Development Team. At Qualiteg, we research and develop AI characters and AI humans built on LLM technology. When reproducing virtual humans with "human-like" qualities such as facial expressions and gestures, AI-powered image processing—image generation and image editing—becomes essential. AI

By Qualiteg Product Development Team
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