If it is functions you have specialized, you can either put them in the .cpp file, or make them inline in the header.
Like James points out, if you don’t make the functions inline, you still have to declare the specializations in the header. Otherwise the compiler doesn’t know it has to look for them elsewhere.
You can then put the implementations (definitions) in a .cpp file. Just like with other functions.