Build a local model