SearcharxivSearch

arXiv subjects

Liu Shijie

Publications and source records attributed to Liu Shijie.

2 recordsLinked to original sources

HFRWKV: A High-Performance Fully On-Chip Hardware Accelerator for RWKV

RWKV is a modern RNN architecture that approaches the performance of Transformers, with the advantage of processing long contexts at a linear memory cost. However, its sequential computation pattern struggles to efficiently leverage GPU parallelism, which leads to low compute resource utilization. Furthermore, frequent off-chip weight accesses create a memory bottleneck. To address these challenges, we propose HFRWKV, an FPGA-based hardware accelerator specifically designed for RWKV. Within the matrix operation module, we propose a novel hardware-friendly hybrid-precision quantization strategy, which enhances performance while maintaining acceptable accuracy. For the complex operations including exponentiation and division, we introduce a method featuring reusable architectures combined with lookup tables or piecewise linear approximation, which is algorithmically refined to effectively balance precision and hardware resource consumption. Based on this foundation, we adopt a fully on-chip computing system integrating parallel matrix-vector processing array and an efficient pipeline architecture. Through computation reordering and chunked double buffering, it effectively eliminates data transfer bottlenecks and improves overall throughput. We implement HFRWKV on the Alveo U50 and U280 platform. Experimental results show that compared to a CPU, a throughput improvement of 63.48$\times$ and an energy efficiency improvement of 139.17$\times$. Compared to GPUs, achieves a throughput improvement of 32.33$\times$ and an energy efficiency improvement of 171.36$\times$.

cs.AR

Fast and high-accuracy measuring technique for transmittance spectrum in VIS-NIR

In this paper, based on the framework of traditional spectrophotometry, we put forward a novel fast and high-accuracy technique for measuring transmittance spectrum in VIS-NIR wave range, its key feature is that during the measurement procedure, the output wavelength of the grating monochromator is kept increasing continuously and at the same time, the photoelectric detectors execute a concurrently continuous data acquisition routine. Initial experiment result shows that the newly proposed technique could shorten the time consumed for measuring the transmittance spectrum down to 50% that of the conventional spectrophotometric method, a relative error of 0.070% and a repeatability error of 0.042% are generated. Compared with the current mostly used techniques (spectrophotometry, methods based on multi-channel spectrometer and strategy using Fourier transform spectrometer) for obtaining transmittance spectrum in VIS-NIR, the new strategy has at all once the following advantages, firstly the measuring speed could be greatly quicken, fast measurement of transmittance spectrum in VIS-NIR is therefore promising, which would find wide application in dynamic environment, secondly high measuring accuracy (0.1%-0.3%) is available, and finally the measuring system has high mechanical stability because the motor of the grating monochromator is rotating continuously during the measurement.

physics.ins-det