Example AN4, 1-bit SGD?
"EXCEPTION occurred: Gradient quantization is unsupported in CNTK binaries built without quantized gradient aggregation support!"
What's the mean of this prompt when I try to run AN4 example? any explanation is appreciated.
[CALL STACK]
/home/jren/Repos/cntk/build/release/bin/../lib/libcntkmath.so ( Microsoft::MSR::CNTK::DebugUtil::PrintCallStack() + 0xc3 ) [0x7f2f00302053]
cntk ( void Microsoft::MSR::CNTK::ThrowFormattedstd::runtime_error(char const_, ...) + 0xdd ) [0x53d6ad]
cntk ( Microsoft::MSR::CNTK::SGD
#EXCEPTION occurred: Gradient quantization is unsupported in CNTK binaries built without quantized gradient aggregation support!
Jun, AN4 exapmle requires 1bit-SGD, which seems to be not there in your case.
If you used binary downloads get the package with 1bit-SGD in (we published it in the latest release). If you built from sources, re-build it with 1bit-SGD support as described here https://github.com/Microsoft/CNTK/wiki/Enabling-1bit-SGD
Also, please be aware, that 1bit-SGD component is licensed differently (both Releases page and the Wiki article above explain the difference)
Thank you, Alexey
thanks your immediate reply, @alexeyo26
You're welcome. :) Please, let us know whether it's fixed your issue. Thank you, Alexey
@alexeyo26 Hi Alexey, I met the problem also after I rebuilt the source code. Do I need to run the command "make clean" before I run the command "make -j all"?
The installation guide says "Pass the option --1bitsgd=yes to the configure command.". Is it means to 1)revise the configure file as: default_use_1bitsgd=no; or 2) run the command in the terminal: ../../configure --1bitsgd=yes.
I tried both these two ways, the output is below. And I still met the same problem when I run AN4 example.
jren@jren-HP-EliteDesk-800-G1-SFF:~/Repos/cntk/build/release $ make -j all make -C /home/jren/Repos/cntk BUILD_TOP=/home/jren/Repos/cntk/build/release all make[1]: Entering directory '/home/jren/Repos/cntk' =-----------------------------------------------------------= finished building for with build type release make[1]: Leaving directory '/home/jren/Repos/cntk'
Hi, Jun,
Yes, to rebuild you need to run "make clean" first. Try this:
Make sure you cloned the repository right, and your folder Source/1BitSGD contains 1bit-SGD code (two .h files). If not, get it as described in the Wiki article I mentioned above.
Then:
make clean
../../configure --1bitsgd=yes
Check Config.make and ensure that the line CNTK_ENABLE_1BitSGD=true is there
Then
make all
or
make -j all
Hope it fill fix it. Thank you, Alexey
Judging from this thread #145 I understand, that this issue is fixed, so I will close it.