Therocephalia is the group most closely related to the cynodonts , which gave rise to the mammals .
In fact Therocephalia is the group most closely related to the cynodonts , which gave rise to the mammals .