
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Low-Precision Arithmetic Simulation in Pytorch - Extension for Posit and customized number formats
git clone https://github.com/minhhn2910/QPyTorch.git
cd QPyTorch
pip install -e ./
Simple test if c-extension is working correctly :
python test.py
Important: if there are errors when running test.py, please export the environment variables indicating build directory and/or CUDA_HOME, otherwise we will have permission problem in multi-user-server.
export TORCH_EXTENSIONS_DIR=/[your-home-folder]/torch_extension
export CUDA_HOME=/[your cuda instalation directory e.g. /usr/local/cuda-10.2]
python test.py
value x -> x*scale -> Posit(x*scale) -> x
x
is in a posit format with es = 0 => Sigmoid(x) = (x XOR 0x8000) >> 2 => PositTanh(x) = 2 · Sigmoid(2x) − 1
examples/tutorial/test_posit_func.ipynb
examples/tutorial/CIFAR10_Posit_Training_Example.ipynb
If you find this repo useful, please cite our paper(s) listed below. The below also explain the terms and usage of Posit's enhancements (exponent bias and tanh function).
@inproceedings{ho2021posit,
title={Posit Arithmetic for the Training and Deployment of Generative Adversarial Networks},
author={Ho, Nhut-Minh and Nguyen, Duy-Thanh and De Silva, Himeshi and Gustafson, John L and Wong, Weng-Fai and Chang, Ik Joon},
booktitle={2021 Design, Automation \& Test in Europe Conference \& Exhibition (DATE)},
pages={1350--1355},
year={2021},
organization={IEEE}
}
The original README file is in REAME.original.md
Credit to the Qpytorch team and their original publication
@misc{zhang2019qpytorch,
title={QPyTorch: A Low-Precision Arithmetic Simulation Framework},
author={Tianyi Zhang and Zhiqiu Lin and Guandao Yang and Christopher De Sa},
year={2019},
eprint={1910.04540},
archivePrefix={arXiv},
primaryClass={cs.LG}
}
FAQs
Low-Precision Arithmetic Simulation in Pytorch - Extension for Posit and customized number formats
We found that qtorch-plus demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.