Are mysql global variables values in bytes?
Yes, it is bytes. You also can not set anything other like

set session tmp_table_size = 8k;


This is only possible in configuration files. But you can do something like

set session tmp_table_size = 8 * 1024;