The present invention relates to a kind of device (1) drying and/or roasting coffee bean food, such as cocoa bean, or part beans, such as cocoa nib, including rack, roller (2) is for receiving bean or pea or part beans is rotatably installed in frame and at least partly (3) and closed at one end, the other end opens wide (4), shell (5) surrounds drum (2), Yishanmen (7) is used to close the roller (2) of the open end (4), heater (19) is for heating the drum (2), fan, and valve (26) keeps space (20) roller (2) and shell (5) between negative pressure. Sealing element (30) is located at gap (2) and shell (5) between drum.