foundation models framework tutorial