Commit a4ca182
Richer conversational snippet for AutoModel (#1611)
I can't remember if we already discussed about this. This is an attempt
to make the `AutoModel` snippet more self-contained, for the particular
but frequent case of conversational transformers models. The pipeline
version already got this treatment in #1434, but the `AutoModel` version
is currently too barebones in comparison, as shown in the screenshot
below.
In my opinion this could reduce the friction for users that want to
experiment with the models in Colab or Kaggle.
cc @Vaibhavs10 @ariG23498
<img width="789" height="534" alt="Screenshot 2025-07-11 at 14 05 15"
src="https://github.com/user-attachments/assets/558837e3-ec56-4100-afa1-7a54d3d79305"
/>
---------
Co-authored-by: vb <[email protected]>1 parent 2220487 commit a4ca182
1 file changed
+42
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1373 | 1373 | | |
1374 | 1374 | | |
1375 | 1375 | | |
1376 | | - | |
| 1376 | + | |
1377 | 1377 | | |
1378 | | - | |
| 1378 | + | |
1379 | 1379 | | |
1380 | 1380 | | |
1381 | 1381 | | |
1382 | 1382 | | |
1383 | 1383 | | |
1384 | | - | |
| 1384 | + | |
1385 | 1385 | | |
1386 | 1386 | | |
1387 | 1387 | | |
1388 | | - | |
1389 | | - | |
1390 | | - | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
1391 | 1422 | | |
1392 | | - | |
| 1423 | + | |
1393 | 1424 | | |
1394 | 1425 | | |
1395 | | - | |
1396 | | - | |
| 1426 | + | |
| 1427 | + | |
1397 | 1428 | | |
1398 | 1429 | | |
1399 | 1430 | | |
| |||
1437 | 1468 | | |
1438 | 1469 | | |
1439 | 1470 | | |
1440 | | - | |
| 1471 | + | |
1441 | 1472 | | |
1442 | | - | |
| 1473 | + | |
1443 | 1474 | | |
1444 | 1475 | | |
1445 | 1476 | | |
| |||
0 commit comments