# Tabular classification/regression inference API

**URL:** <https://discuss.huggingface.co/t/tabular-classification-regression-inference-api/22250>\
**Category:** Beginners\
**Created:** [August 29, 2022, 6:52am UTC](https://discuss.huggingface.co/t/tabular-classification-regression-inference-api/22250 "2022-08-29T06:52:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![StyrbjornKall](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/styrbjornkall/32/37485_2.png) [@StyrbjornKall](https://discuss.huggingface.co/u/StyrbjornKall)\
**Post date:** [August 29, 2022, 6:52am UTC](https://discuss.huggingface.co/t/tabular-classification-regression-inference-api/22250/1 "2022-08-29T06:52:40Z")

</div>

Hi!

I have a fine-tuned pytorch model which builds upon a pretrained roberta model from huggingface. The pytorch model simply has two fully connected layers after the roberta model where I add some additional parameters to predict a single value (i.e. a regression task).

I would very much like this model to be available for inference on the hub and I believe the Tabular Classification or Tabular Regression tasks are suitable widgets since they allow me to both pass text to the transformer in one column and the other additional parameters in the other columns.

However, I’ve been trying to follow this [tutorial](https://huggingface.co/templates/tabular-classification) which links to the [wine-quality](https://huggingface.co/osanseviero/wine-quality?data=%7B%22fixed_acidity%22%3A%5B%227.3%22%2C%227.8%22%2C%2210.3%22%5D%2C%22volatile_acidity%22%3A%5B%220.7%22%2C%220.88%22%2C%220.32%22%5D%2C%22citric_acid%22%3A%5B%220%22%2C%220%22%2C%220.45%22%5D%2C%22residual_sugar%22%3A%5B%221.9%22%2C%222.6%22%2C%226.4%22%5D%2C%22chlorides%22%3A%5B%220.076%22%2C%220.098%22%2C%220.073%22%5D%2C%22free_sulfur_dioxide%22%3A%5B%2211%22%2C%2225%22%2C%225%22%5D%2C%22total_sulfur_dioxide%22%3A%5B%2234%22%2C%2267%22%2C%2213%22%5D%2C%22density%22%3A%5B%220.9978%22%2C%220.9968%22%2C%220.9976%22%5D%2C%22pH%22%3A%5B%223.51%22%2C%223.2%22%2C%223.23%22%5D%2C%22sulphates%22%3A%5B%220.56%22%2C%220.68%22%2C%220.82%22%5D%2C%22alcohol%22%3A%5B%229.4%22%2C%229.8%22%2C%2212.6%22%5D%7D) example by @osanseviero, but there I can’t find any pipeline.py file and don’t really understand how to implement the functions specified in the tutorial.

There are some users who have successfully implemented the Tabular Regression widget on sklearn models, has anyone figured out how to do so with transformers models?

Thank you in advance! 😊

EDIT: This is a copy of this [issue](https://discuss.huggingface.co/t/tabular-classification-regression-pipeline/22030) in case the category was wrong

---

<div class="post-metadata">

**Author:** ![nielsr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nielsr/32/39617_2.png) [@nielsr](https://discuss.huggingface.co/u/nielsr)\
**Post date:** [August 29, 2022, 8:12am UTC](https://discuss.huggingface.co/t/tabular-classification-regression-inference-api/22250/2 "2022-08-29T08:12:35Z")

</div>

cc’ing @merve here
