# tinker.types.CreateCustomLossRequest *Generated from tinker 0.40.0 at commit [`3e952a8`](https://github.com/thinking-machines-lab/tinker/tree/3e952a8b979654cacc9dc68aadeb50bc418036a7). Source links point at that snapshot.* ## *class* [**tinker.types.CreateCustomLossRequest**](https://github.com/thinking-machines-lab/tinker/blob/3e952a8b979654cacc9dc68aadeb50bc418036a7/src/tinker/types/create_custom_loss_request.py#L14)(*[StrictBase](https://github.com/thinking-machines-lab/tinker/blob/3e952a8b979654cacc9dc68aadeb50bc418036a7/src/tinker/_models.py#L76)*) **Fields:** - [**session_id**](https://github.com/thinking-machines-lab/tinker/blob/3e952a8b979654cacc9dc68aadeb50bc418036a7/src/tinker/types/create_custom_loss_request.py#L15) (*str*) - [**custom_loss_seq_id**](https://github.com/thinking-machines-lab/tinker/blob/3e952a8b979654cacc9dc68aadeb50bc418036a7/src/tinker/types/create_custom_loss_request.py#L17) (*int*) - [**name**](https://github.com/thinking-machines-lab/tinker/blob/3e952a8b979654cacc9dc68aadeb50bc418036a7/src/tinker/types/create_custom_loss_request.py#L19) (*str*) - [**inputs**](https://github.com/thinking-machines-lab/tinker/blob/3e952a8b979654cacc9dc68aadeb50bc418036a7/src/tinker/types/create_custom_loss_request.py#L21) (*List\[[CustomLossInput](https://tinker-docs.thinkingmachines.ai/tinker/api-reference/types/customlossinput/index.md)\]*) – The graph's inputs in order, `logprobs` first, with their declared ranks. - [**graph**](https://github.com/thinking-machines-lab/tinker/blob/3e952a8b979654cacc9dc68aadeb50bc418036a7/src/tinker/types/create_custom_loss_request.py#L24) (*[CustomLossGraph](https://tinker-docs.thinkingmachines.ai/tinker/api-reference/types/customlossgraph/index.md)*) - [**type**](https://github.com/thinking-machines-lab/tinker/blob/3e952a8b979654cacc9dc68aadeb50bc418036a7/src/tinker/types/create_custom_loss_request.py#L26) (*Literal['create_custom_loss']*)