|
<!DOCTYPE html> |
|
<html> |
|
<head> |
|
<meta charset="utf-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> |
|
<meta name="description" content="We’re on a journey to solve and democratize artificial intelligence through natural language."> |
|
<meta property="fb:app_id" content="1321688464574422"> |
|
<meta name="twitter:card" content="summary_large_image"> |
|
<meta name="twitter:site" content="@huggingface"> |
|
<meta property="og:title" content="special_tokens_map.json · Rostlab/prot_t5_xl_bfd at main"> |
|
<meta property="og:type" content="website"> |
|
<meta property="og:url" content="https://huggingface.co/Rostlab/prot_t5_xl_bfd/blob/main/special_tokens_map.json"> |
|
<meta property="og:image" content="https://huggingface.co/front/thumbnails/v2-2.png"> |
|
|
|
<link rel="stylesheet" href="/front/build/style.04f8ca9.css"> |
|
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" /> |
|
<link |
|
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap" |
|
rel="stylesheet" |
|
/> |
|
<link |
|
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600;700&display=swap" |
|
rel="stylesheet" |
|
/> |
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css"> |
|
|
|
<title> |
|
special_tokens_map.json · Rostlab/prot_t5_xl_bfd at main |
|
</title> |
|
</head> |
|
<body class="flex flex-col min-h-screen viewer-blob"> |
|
<header class="border-b border-gray-100 z-10"> |
|
<div class="container flex items-center h-16"> |
|
<div class="flex flex-1 items-center"> |
|
<a class="flex flex-none items-center mr-5 lg:mr-6" href="/"> |
|
<img alt="Hugging Face's logo" class="md:mr-2 w-7" src="/front/assets/huggingface_logo.svg"> |
|
<span class="hidden text-lg font-bold whitespace-nowrap md:block">Hugging Face</span> |
|
</a> |
|
|
|
<div |
|
class="v2-quick-search relative flex-1 lg:max-w-sm mr-2 md:mr-4" |
|
search-type="all" |
|
url="/api/quicksearch-html" |
|
with-links="true" |
|
> |
|
<input |
|
autocomplete="off" |
|
class="v2-quick-search-input w-full h-9 pl-8 pr-3 border border-gray-200 shadow-inner rounded-lg outline-none focus:ring-2 focus:shadow-xl placeholder-gray-400 focus:ring-inset" |
|
name="" |
|
placeholder="Search models, datasets, users..." |
|
|
|
spellcheck="false" |
|
type="text" |
|
/> |
|
<svg |
|
alt="" |
|
class="absolute left-2.5 top-2.5 text-gray-400" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 32 32" |
|
> |
|
<path |
|
d="M30 28.59L22.45 21A11 11 0 1 0 21 22.45L28.59 30zM5 14a9 9 0 1 1 9 9a9 9 0 0 1-9-9z" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
<ul |
|
class="v2-quick-search-results z-40 hidden absolute w-full overflow-hidden text-sm bg-white border border-gray-100 rounded-lg shadow-lg divide-y divide-gray-100" |
|
role="listbox" |
|
></ul> |
|
</div> |
|
<button |
|
id="v2-phone-nav-button" |
|
class="lg:hidden relative flex-none place-self-stretch flex items-center justify-center w-8" |
|
type="button" |
|
> |
|
<svg |
|
alt="" |
|
class="v2-phone-nav-icon-open" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="22" |
|
height="22" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 32 32" |
|
> |
|
<path d="M4 24h24v2H4z" fill="currentColor"></path> |
|
<path d="M4 12h24v2H4z" fill="currentColor"></path> |
|
<path d="M4 18h24v2H4z" fill="currentColor"></path> |
|
<path d="M4 6h24v2H4z" fill="currentColor"></path> |
|
</svg> |
|
<svg |
|
alt="" |
|
class="v2-phone-nav-icon-close hidden" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1.1em" |
|
height="1.1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 32 32" |
|
> |
|
<path |
|
d="M24 9.4L22.6 8L16 14.6L9.4 8L8 9.4l6.6 6.6L8 22.6L9.4 24l6.6-6.6l6.6 6.6l1.4-1.4l-6.6-6.6L24 9.4z" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
</button> |
|
</div> |
|
<nav |
|
aria-label="Main" |
|
class="ml-auto hidden lg:block" |
|
> |
|
<ul class="flex items-center space-x-6"> |
|
<li> |
|
<a |
|
class="flex items-center group hover:text-indigo-700" |
|
href="/models" |
|
> |
|
<svg |
|
alt="" |
|
class="mr-1.5 text-gray-400 group-hover:text-indigo-500" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 24 24" |
|
> |
|
<path |
|
class="uim-quaternary" |
|
d="M20.23 7.24L12 12L3.77 7.24a1.98 1.98 0 0 1 .7-.71L11 2.76c.62-.35 1.38-.35 2 0l6.53 3.77c.29.173.531.418.7.71z" |
|
opacity=".25" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-tertiary" |
|
d="M12 12v9.5a2.09 2.09 0 0 1-.91-.21L4.5 17.48a2.003 2.003 0 0 1-1-1.73v-7.5a2.06 2.06 0 0 1 .27-1.01L12 12z" |
|
opacity=".5" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-primary" |
|
d="M20.5 8.25v7.5a2.003 2.003 0 0 1-1 1.73l-6.62 3.82c-.275.13-.576.198-.88.2V12l8.23-4.76c.175.308.268.656.27 1.01z" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
Models |
|
</a> |
|
</li> |
|
<li> |
|
<a |
|
class="flex items-center group hover:text-red-700" |
|
href="/datasets" |
|
> |
|
<svg |
|
class="mr-1.5 text-gray-400 group-hover:text-red-500" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
alt="" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 25 25" |
|
> |
|
<ellipse |
|
cx="12.5" |
|
cy="5" |
|
fill="currentColor" |
|
fill-opacity="0.25" |
|
rx="7.5" |
|
ry="2" |
|
></ellipse> |
|
<path |
|
d="M12.5 15C16.6421 15 20 14.1046 20 13V20C20 21.1046 16.6421 22 12.5 22C8.35786 22 5 21.1046 5 20V13C5 14.1046 8.35786 15 12.5 15Z" |
|
fill="currentColor" |
|
opacity="0.5" |
|
></path> |
|
<path |
|
d="M12.5 7C16.6421 7 20 6.10457 20 5V11.5C20 12.6046 16.6421 13.5 12.5 13.5C8.35786 13.5 5 12.6046 5 11.5V5C5 6.10457 8.35786 7 12.5 7Z" |
|
fill="currentColor" |
|
opacity="0.5" |
|
></path> |
|
<path |
|
d="M5.23628 12C5.08204 12.1598 5 12.8273 5 13C5 14.1046 8.35786 15 12.5 15C16.6421 15 20 14.1046 20 13C20 12.8273 19.918 12.1598 19.7637 12C18.9311 12.8626 15.9947 13.5 12.5 13.5C9.0053 13.5 6.06886 12.8626 5.23628 12Z" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
Datasets |
|
</a> |
|
</li> |
|
<li> |
|
<a |
|
class="flex items-center group hover:text-gray-500" |
|
href="/pricing" |
|
> |
|
Pricing |
|
</a> |
|
</li> |
|
<li class="b-r"> |
|
<div |
|
class="v2-dropdown relative " |
|
|
|
> |
|
<button |
|
class="v2-dropdown-button cursor-pointer hover:text-gray-500 flex items-center" |
|
slot="trigger" |
|
type="button" |
|
> |
|
<svg alt="" |
|
class="mr-2 text-gray-400 fill-current w-3" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
viewBox="0 0 11 8" |
|
preserveAspectRatio="xMidYMid meet"> |
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 1.5H0V0.5H11V1.5ZM11 7.5H0V6.5H11V7.5ZM0 4.5H11V3.5H0V4.5Z" /> |
|
</svg> |
|
Resources |
|
</button><div |
|
class="v2-dropdown-menu hidden absolute mt-1 min-w-full bg-white rounded-xl overflow-hidden shadow-lg z-10 border border-gray-100 right-0 top-full " |
|
> |
|
<ul class="min-w-full w-52"> |
|
<li> |
|
<div |
|
class="col-span-2 -mx-2 px-4 flex items-center font-semibold bg-gradient-to-r to-white h-7 text-blue-800 from-blue-50" |
|
> |
|
Website |
|
</div> <ul> |
|
<li> |
|
<a |
|
class="v2-dropdown-entry flex items-center hover:bg-gray-50 cursor-pointer truncate |
|
hover:underline |
|
px-3 py-1.5 |
|
|
|
" |
|
|
|
|
|
href="/metrics" |
|
|
|
> |
|
<svg |
|
alt="" |
|
class="text-gray-400 mr-1.5" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 24 24" |
|
> |
|
<path |
|
class="uim-quaternary" |
|
d="M6 23H2a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1z" |
|
opacity=".25" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-primary" |
|
d="M14 23h-4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v20a1 1 0 0 1-1 1z" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-tertiary" |
|
d="M22 23h-4a1 1 0 0 1-1-1V10a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1z" |
|
opacity=".5" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
Metrics |
|
</a> |
|
</li> |
|
<li> |
|
<a |
|
class="v2-dropdown-entry flex items-center hover:bg-gray-50 cursor-pointer truncate |
|
hover:underline |
|
px-3 py-1.5 |
|
|
|
" |
|
|
|
|
|
href="/languages" |
|
|
|
> |
|
<svg |
|
alt="" |
|
class="text-gray-400 mr-1.5" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 24 24" |
|
> |
|
<path |
|
class="uim-primary" |
|
d="M17 13H7a1 1 0 0 1 0-2h10a1 1 0 0 1 0 2z" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-tertiary" |
|
d="M12 2a10 10 0 0 0-7.743 16.33l-1.964 1.963A1 1 0 0 0 3 22h9a10 10 0 0 0 0-20zM9 7h6a1 1 0 0 1 0 2H9a1 1 0 0 1 0-2zm6 10H9a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2zm2-4H7a1 1 0 0 1 0-2h10a1 1 0 0 1 0 2z" |
|
opacity=".5" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-primary" |
|
d="M15 17H9a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2zm0-8H9a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2z" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
Languages |
|
</a> |
|
</li> |
|
<li> |
|
<a |
|
class="v2-dropdown-entry flex items-center hover:bg-gray-50 cursor-pointer truncate |
|
hover:underline |
|
px-3 py-1.5 |
|
|
|
" |
|
|
|
|
|
href="/organizations" |
|
|
|
> |
|
<svg |
|
alt="" |
|
class="text-gray-400 mr-1.5" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 24 24" |
|
> |
|
<path |
|
class="uim-tertiary" |
|
d="M12 18a3.5 3.5 0 1 1 3.5-3.5A3.504 3.504 0 0 1 12 18z" |
|
opacity=".5" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-primary" |
|
d="M14.64 16.772a3.452 3.452 0 0 1-5.28 0A4.988 4.988 0 0 0 7 21a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1a4.988 4.988 0 0 0-2.36-4.228z" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-tertiary" |
|
d="M21 12a.996.996 0 0 1-.664-.252L12 4.338l-8.336 7.41a1 1 0 0 1-1.328-1.496l9-8a.999.999 0 0 1 1.328 0l9 8A1 1 0 0 1 21 12z" |
|
opacity=".5" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-quaternary" |
|
d="M12 4.338l-8 7.111V21a1 1 0 0 0 1 1h3a1 1 0 0 1-1-1a4.988 4.988 0 0 1 2.36-4.228A3.469 3.469 0 0 1 8.5 14.5a3.5 3.5 0 0 1 7 0a3.469 3.469 0 0 1-.86 2.272A4.988 4.988 0 0 1 17 21a1 1 0 0 1-1 1h3a1 1 0 0 0 1-1v-9.551z" |
|
opacity=".25" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
Organizations |
|
</a> |
|
</li> |
|
</ul> |
|
</li> |
|
<li> |
|
<div |
|
class="col-span-2 -mx-2 px-4 flex items-center font-semibold bg-gradient-to-r to-white h-7 text-yellow-800 from-yellow-50" |
|
> |
|
Community |
|
</div> <ul> |
|
<li> |
|
<a |
|
class="v2-dropdown-entry flex items-center hover:bg-gray-50 cursor-pointer truncate |
|
hover:underline |
|
px-3 py-1.5 |
|
|
|
" |
|
|
|
|
|
href="https://discuss.huggingface.co/" |
|
target="_blank" |
|
> |
|
Forum |
|
</a> |
|
</li> |
|
<li> |
|
<a |
|
class="v2-dropdown-entry flex items-center hover:bg-gray-50 cursor-pointer truncate |
|
hover:underline |
|
px-3 py-1.5 |
|
|
|
" |
|
|
|
|
|
href="/blog" |
|
|
|
> |
|
Blog |
|
</a> |
|
</li> |
|
<li> |
|
<a |
|
class="v2-dropdown-entry flex items-center hover:bg-gray-50 cursor-pointer truncate |
|
hover:underline |
|
px-3 py-1.5 |
|
|
|
" |
|
|
|
|
|
href="https://github.com/huggingface" |
|
target="_blank" |
|
> |
|
GitHub |
|
</a> |
|
</li> |
|
</ul> |
|
</li> |
|
<li> |
|
<div |
|
class="col-span-2 -mx-2 px-4 flex items-center font-semibold bg-gradient-to-r to-white h-7 text-green-800 from-green-50" |
|
> |
|
Documentation |
|
</div> <ul> |
|
<li> |
|
<a |
|
class="v2-dropdown-entry flex items-center hover:bg-gray-50 cursor-pointer truncate |
|
hover:underline |
|
px-3 py-1.5 |
|
|
|
" |
|
|
|
|
|
href="/docs" |
|
|
|
> |
|
Model Hub doc |
|
</a> |
|
</li> |
|
<li> |
|
<a |
|
class="v2-dropdown-entry flex items-center hover:bg-gray-50 cursor-pointer truncate |
|
hover:underline |
|
px-3 py-1.5 |
|
|
|
" |
|
|
|
|
|
href="https://api-inference.huggingface.co/docs/" |
|
target="_blank" |
|
> |
|
Inference API doc |
|
</a> |
|
</li> |
|
<li> |
|
<a |
|
class="v2-dropdown-entry flex items-center hover:bg-gray-50 cursor-pointer truncate |
|
hover:underline |
|
px-3 py-1.5 |
|
|
|
" |
|
|
|
|
|
href="/transformers/" |
|
|
|
> |
|
Transformers doc |
|
</a> |
|
</li> |
|
<li> |
|
<a |
|
class="v2-dropdown-entry flex items-center hover:bg-gray-50 cursor-pointer truncate |
|
hover:underline |
|
px-3 py-1.5 |
|
|
|
" |
|
|
|
|
|
href="/docs/tokenizers/python/latest/" |
|
|
|
> |
|
Tokenizers doc |
|
</a> |
|
</li> |
|
<li> |
|
<a |
|
class="v2-dropdown-entry flex items-center hover:bg-gray-50 cursor-pointer truncate |
|
hover:underline |
|
px-3 py-1.5 |
|
|
|
" |
|
|
|
|
|
href="/docs/datasets/" |
|
|
|
> |
|
Datasets doc |
|
</a> |
|
</li> |
|
</ul> |
|
</li> |
|
</ul> |
|
</div></div> |
|
</li> |
|
<li> |
|
<hr class="w-0.5 h-5 bg-gray-100" /> |
|
</li> |
|
<li> |
|
<a |
|
class="block cursor-pointer hover:text-gray-500" |
|
href="/login" |
|
> |
|
Log In |
|
</a> |
|
</li> |
|
<li> |
|
<a |
|
class="btn" |
|
href="/join" |
|
> |
|
Sign Up |
|
</a> |
|
</li> |
|
</ul> |
|
</nav> |
|
<div |
|
id="v2-phone-nav-menu" |
|
class="hidden lg:hidden z-20 fixed bg-white top-16 inset-0 overflow-y-auto" |
|
> |
|
<nav aria-label="Main"> |
|
<ul class="px-2 pb-4 space-y-4"> |
|
<li class="space-y-2.5"> |
|
<div |
|
class="-mx-2 flex items-center px-2 font-semibold |
|
text-purple-800 bg-gradient-to-r from-purple-50 to-white h-7" |
|
> |
|
Account |
|
</div> |
|
<ul class="grid gap-2.5 grid-cols-2 content-start"> |
|
<li> |
|
<a class="btn w-full v2-dropdown-entry" href="/login"> |
|
Log In |
|
</a> |
|
</li> |
|
<li> |
|
<a class="btn w-full v2-dropdown-entry" href="/join"> |
|
Sign Up |
|
</a> |
|
</li> |
|
</ul> |
|
</li> |
|
<li class="space-y-2.5"> |
|
<div |
|
class="-mx-2 flex items-center px-2 font-semibold text-blue-800 |
|
bg-gradient-to-r from-blue-50 to-white h-7" |
|
> |
|
Website |
|
</div> |
|
<ul class="grid gap-2.5 grid-cols-2 content-start"> |
|
<li> |
|
<a href="/models" class="btn w-full v2-dropdown-entry"> |
|
<svg |
|
alt="" |
|
class="text-gray-400 mr-1.5" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 24 24" |
|
> |
|
<path |
|
class="uim-quaternary" |
|
d="M20.23 7.24L12 12L3.77 7.24a1.98 1.98 0 0 1 .7-.71L11 2.76c.62-.35 1.38-.35 2 0l6.53 3.77c.29.173.531.418.7.71z" |
|
opacity=".25" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-tertiary" |
|
d="M12 12v9.5a2.09 2.09 0 0 1-.91-.21L4.5 17.48a2.003 2.003 0 0 1-1-1.73v-7.5a2.06 2.06 0 0 1 .27-1.01L12 12z" |
|
opacity=".5" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-primary" |
|
d="M20.5 8.25v7.5a2.003 2.003 0 0 1-1 1.73l-6.62 3.82c-.275.13-.576.198-.88.2V12l8.23-4.76c.175.308.268.656.27 1.01z" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
Models |
|
</a> |
|
</li> |
|
<li> |
|
<a href="/datasets" class="btn w-full v2-dropdown-entry"> |
|
<svg |
|
class="text-gray-400 mr-1.5" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
alt="" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 25 25" |
|
> |
|
<ellipse |
|
cx="12.5" |
|
cy="5" |
|
fill="currentColor" |
|
fill-opacity="0.25" |
|
rx="7.5" |
|
ry="2" |
|
></ellipse> |
|
<path |
|
d="M12.5 15C16.6421 15 20 14.1046 20 13V20C20 21.1046 16.6421 22 12.5 22C8.35786 22 5 21.1046 5 20V13C5 14.1046 8.35786 15 12.5 15Z" |
|
fill="currentColor" |
|
opacity="0.5" |
|
></path> |
|
<path |
|
d="M12.5 7C16.6421 7 20 6.10457 20 5V11.5C20 12.6046 16.6421 13.5 12.5 13.5C8.35786 13.5 5 12.6046 5 11.5V5C5 6.10457 8.35786 7 12.5 7Z" |
|
fill="currentColor" |
|
opacity="0.5" |
|
></path> |
|
<path |
|
d="M5.23628 12C5.08204 12.1598 5 12.8273 5 13C5 14.1046 8.35786 15 12.5 15C16.6421 15 20 14.1046 20 13C20 12.8273 19.918 12.1598 19.7637 12C18.9311 12.8626 15.9947 13.5 12.5 13.5C9.0053 13.5 6.06886 12.8626 5.23628 12Z" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
Datasets |
|
</a> |
|
</li> |
|
<li> |
|
<a href="/metrics" class="btn w-full v2-dropdown-entry"> |
|
<svg |
|
alt="" |
|
class="text-gray-400 mr-1.5" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 24 24" |
|
> |
|
<path |
|
class="uim-quaternary" |
|
d="M6 23H2a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1z" |
|
opacity=".25" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-primary" |
|
d="M14 23h-4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v20a1 1 0 0 1-1 1z" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-tertiary" |
|
d="M22 23h-4a1 1 0 0 1-1-1V10a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1z" |
|
opacity=".5" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
Metrics |
|
</a> |
|
</li> |
|
<li> |
|
<a href="/languages" class="btn w-full v2-dropdown-entry"> |
|
<svg |
|
alt="" |
|
class="text-gray-400 mr-1.5" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 24 24" |
|
> |
|
<path |
|
class="uim-primary" |
|
d="M17 13H7a1 1 0 0 1 0-2h10a1 1 0 0 1 0 2z" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-tertiary" |
|
d="M12 2a10 10 0 0 0-7.743 16.33l-1.964 1.963A1 1 0 0 0 3 22h9a10 10 0 0 0 0-20zM9 7h6a1 1 0 0 1 0 2H9a1 1 0 0 1 0-2zm6 10H9a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2zm2-4H7a1 1 0 0 1 0-2h10a1 1 0 0 1 0 2z" |
|
opacity=".5" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-primary" |
|
d="M15 17H9a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2zm0-8H9a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2z" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
Languages |
|
</a> |
|
</li> |
|
<li> |
|
<a href="/organizations" class="btn w-full v2-dropdown-entry"> |
|
<svg |
|
alt="" |
|
class="text-gray-400 mr-1.5" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 24 24" |
|
> |
|
<path |
|
class="uim-tertiary" |
|
d="M12 18a3.5 3.5 0 1 1 3.5-3.5A3.504 3.504 0 0 1 12 18z" |
|
opacity=".5" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-primary" |
|
d="M14.64 16.772a3.452 3.452 0 0 1-5.28 0A4.988 4.988 0 0 0 7 21a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1a4.988 4.988 0 0 0-2.36-4.228z" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-tertiary" |
|
d="M21 12a.996.996 0 0 1-.664-.252L12 4.338l-8.336 7.41a1 1 0 0 1-1.328-1.496l9-8a.999.999 0 0 1 1.328 0l9 8A1 1 0 0 1 21 12z" |
|
opacity=".5" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-quaternary" |
|
d="M12 4.338l-8 7.111V21a1 1 0 0 0 1 1h3a1 1 0 0 1-1-1a4.988 4.988 0 0 1 2.36-4.228A3.469 3.469 0 0 1 8.5 14.5a3.5 3.5 0 0 1 7 0a3.469 3.469 0 0 1-.86 2.272A4.988 4.988 0 0 1 17 21a1 1 0 0 1-1 1h3a1 1 0 0 0 1-1v-9.551z" |
|
opacity=".25" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
Organizations |
|
</a> |
|
</li> |
|
<li> |
|
<a href="/pricing" class="btn w-full v2-dropdown-entry"> |
|
Pricing |
|
</a> |
|
</li> |
|
</ul> |
|
</li> |
|
<li class="space-y-2.5"> |
|
<div |
|
class="-mx-2 flex items-center px-2 font-semibold |
|
text-yellow-800 bg-gradient-to-r from-yellow-50 to-white h-7" |
|
> |
|
Community |
|
</div> |
|
<ul class="grid gap-2.5 grid-cols-2 content-start"> |
|
<li> |
|
<a href="https://discuss.huggingface.co/" class="btn w-full v2-dropdown-entry"> |
|
Forum |
|
</a> |
|
</li> |
|
<li> |
|
<a href="/blog" class="btn w-full v2-dropdown-entry"> |
|
Blog |
|
</a> |
|
</li> |
|
</ul> |
|
</li> |
|
<li class="space-y-2.5"> |
|
<div |
|
class="-mx-2 flex items-center px-2 font-semibold |
|
text-green-800 bg-gradient-to-r from-green-50 to-white h-7" |
|
> |
|
Documentation |
|
</div> |
|
<ul class="grid gap-2.5 grid-cols-2 content-start"> |
|
<li> |
|
<a href="/docs" class="btn w-full v2-dropdown-entry"> |
|
Model Hub doc |
|
</a> |
|
</li> |
|
<li> |
|
<a href="https://api-inference.huggingface.co/docs/" class="btn w-full v2-dropdown-entry"> |
|
Inference API doc |
|
</a> |
|
</li> |
|
<li> |
|
<a href="/transformers/" class="btn w-full v2-dropdown-entry"> |
|
Transformers doc |
|
</a> |
|
</li> |
|
<li> |
|
<a href="/docs/tokenizers/python/latest/" class="btn w-full v2-dropdown-entry"> |
|
Tokenizers doc |
|
</a> |
|
</li> |
|
<li> |
|
<a href="/docs/datasets/" class="btn w-full v2-dropdown-entry"> |
|
Datasets doc |
|
</a> |
|
</li> |
|
</ul> |
|
</li> |
|
</ul> |
|
</nav> |
|
</div> |
|
</div> |
|
</header> <main class="flex flex-col flex-1 "> |
|
<header class="bg-gradient-to-t from-gray-50 via-white to-white pt-10"> |
|
<div class="container relative"> |
|
<h1 class="flex items-center flex-wrap font-mono text-lg md:text-xl mb-3"> |
|
<div class="inline-flex items-center"> |
|
<img |
|
class="w-4 h-4 rounded mr-1.5" |
|
alt="'s picture" |
|
src="https://aeiljuispo.cloudimg.io/v7/https://s3.amazonaws.com/moonup/production/uploads/1597750407211-5f16d73c925b9863e28ad430.png?w=200&h=200&f=face" |
|
/> |
|
<a href="/Rostlab" class="font-sans text-gray-400 hover:text-blue-600"> |
|
Rostlab |
|
</a> |
|
<div class="text-gray-300 mx-0.5">/</div> |
|
</div> |
|
<div class="font-semibold"> |
|
<a href="/Rostlab/prot_t5_xl_bfd"> |
|
prot_t5_xl_bfd |
|
</a> |
|
</div> |
|
</h1> |
|
<div class="flex flex-wrap mb-5"> |
|
<a class=" |
|
tag |
|
|
|
tag-white |
|
" |
|
href="/models?pipeline_tag=text2text-generation" |
|
tag-id="text2text-generation" |
|
> |
|
<div class="tag-ico |
|
tag-ico-indigo |
|
"> |
|
<svg |
|
alt="" |
|
class="" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
fill="currentColor" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 18 18" |
|
> |
|
<path |
|
d="M4.00626 16.5125C3.46854 16.5125 2.9429 16.353 2.4958 16.0543C2.0487 15.7556 1.70024 15.3309 1.49446 14.8342C1.28868 14.3374 1.23484 13.7907 1.33975 13.2633C1.44465 12.7359 1.70359 12.2515 2.08381 11.8713C2.46403 11.4911 2.94847 11.2321 3.47586 11.1272C4.00324 11.0223 4.54989 11.0762 5.04668 11.2819C5.54346 11.4877 5.96807 11.8362 6.26681 12.2833C6.56555 12.7304 6.72501 13.256 6.72501 13.7937C6.72414 14.5145 6.43743 15.2055 5.92775 15.7152C5.41807 16.2249 4.72705 16.5116 4.00626 16.5125V16.5125ZM4.00626 12.1625C3.68363 12.1625 3.36824 12.2582 3.09998 12.4374C2.83173 12.6166 2.62264 12.8714 2.49918 13.1695C2.37571 13.4676 2.34341 13.7955 2.40635 14.112C2.46929 14.4284 2.62465 14.7191 2.85279 14.9472C3.08092 15.1753 3.37158 15.3307 3.68802 15.3936C4.00445 15.4566 4.33244 15.4243 4.63051 15.3008C4.92858 15.1773 5.18335 14.9683 5.36259 14.7C5.54184 14.4317 5.63751 14.1164 5.63751 13.7937C5.63708 13.3612 5.46507 12.9466 5.15925 12.6407C4.85342 12.3349 4.43876 12.1629 4.00626 12.1625Z" |
|
></path> |
|
<path |
|
d="M13.25 14.3375H7.81251V13.25H13.25V9.44371H4.55001C4.26167 9.44343 3.98523 9.32876 3.78135 9.12487C3.57747 8.92099 3.4628 8.64455 3.46251 8.35621V4.54996C3.4628 4.26163 3.57747 3.98519 3.78135 3.7813C3.98523 3.57742 4.26167 3.46275 4.55001 3.46246H9.98751V4.54996H4.55001V8.35621H13.25C13.5383 8.3565 13.8148 8.47117 14.0187 8.67505C14.2226 8.87894 14.3372 9.15538 14.3375 9.44371V13.25C14.3372 13.5383 14.2226 13.8147 14.0187 14.0186C13.8148 14.2225 13.5383 14.3372 13.25 14.3375V14.3375Z" |
|
></path> |
|
<path |
|
d="M15.425 6.72504H12.1625C11.8742 6.72475 11.5977 6.61008 11.3939 6.4062C11.19 6.20231 11.0753 5.92587 11.075 5.63754V2.37504C11.0753 2.0867 11.19 1.81026 11.3939 1.60638C11.5977 1.40249 11.8742 1.28782 12.1625 1.28754H15.425C15.7133 1.28782 15.9898 1.40249 16.1937 1.60638C16.3976 1.81026 16.5122 2.0867 16.5125 2.37504V5.63754C16.5122 5.92587 16.3976 6.20231 16.1937 6.4062C15.9898 6.61008 15.7133 6.72475 15.425 6.72504V6.72504ZM12.1625 2.37504V5.63754H15.425V2.37504H12.1625Z" |
|
></path> |
|
</svg> |
|
</div> |
|
<span> |
|
Text2Text Generation |
|
</span> |
|
|
|
</a> |
|
<a class=" |
|
tag |
|
|
|
tag-red |
|
" |
|
href="/models?filter=pytorch" |
|
tag-id="pytorch" |
|
> |
|
<svg |
|
alt="" |
|
class="inline-block ml-2 text-sm" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="0.83em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 256 310" |
|
> |
|
<path |
|
d="M218.281 90.106c50.292 50.292 50.292 130.969 0 181.61c-49.244 50.292-130.27 50.292-180.562 0s-50.292-131.318 0-181.61L127.825 0v45.053l-8.382 8.382l-59.721 59.722c-37.72 37.02-37.72 97.79 0 135.509c37.02 37.719 97.79 37.719 135.509 0c37.719-37.02 37.719-97.79 0-135.51l23.05-23.05zm-45.053-5.588c-9.259 0-16.764-7.505-16.764-16.764c0-9.258 7.505-16.764 16.764-16.764c9.258 0 16.764 7.506 16.764 16.764c0 9.259-7.506 16.764-16.764 16.764z" |
|
fill="#EE4C2C" |
|
></path> |
|
</svg> |
|
<span> |
|
PyTorch |
|
</span> |
|
|
|
</a> |
|
<a class=" |
|
tag |
|
|
|
tag-red |
|
" |
|
href="/models?filter=tf" |
|
tag-id="tf" |
|
> |
|
<svg |
|
class="inline-block ml-2 text-sm" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="0.94em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 256 274" |
|
> |
|
<path |
|
d="M145.726 42.065v42.07l72.861 42.07v-42.07l-72.86-42.07zM0 84.135v42.07l36.43 21.03V105.17L0 84.135zm109.291 21.035l-36.43 21.034v126.2l36.43 21.035v-84.135l36.435 21.035v-42.07l-36.435-21.034V105.17z" |
|
fill="#E55B2D" |
|
></path> |
|
<path |
|
d="M145.726 42.065L36.43 105.17v42.065l72.861-42.065v42.065l36.435-21.03v-84.14zM255.022 63.1l-36.435 21.035v42.07l36.435-21.035V63.1zm-72.865 84.135l-36.43 21.035v42.07l36.43-21.036v-42.07zm-36.43 63.104l-36.436-21.035v84.135l36.435-21.035V210.34z" |
|
fill="#ED8E24" |
|
></path> |
|
<path |
|
d="M145.726 0L0 84.135l36.43 21.035l109.296-63.105l72.861 42.07L255.022 63.1L145.726 0zm0 126.204l-36.435 21.03l36.435 21.036l36.43-21.035l-36.43-21.03z" |
|
fill="#F8BF3C" |
|
></path> |
|
</svg> |
|
<span> |
|
TensorFlow |
|
</span> |
|
|
|
</a> |
|
<a class=" |
|
tag |
|
|
|
tag-indigo |
|
" |
|
href="/models?filter=dataset:BFD" |
|
tag-id="dataset:BFD" |
|
> |
|
<span> |
|
BFD |
|
</span> |
|
|
|
</a> |
|
<a class=" |
|
tag |
|
|
|
tag-green |
|
" |
|
href="/models?filter=protein" |
|
tag-id="protein" |
|
> |
|
<span> |
|
protein |
|
</span> |
|
|
|
</a> |
|
<a class=" |
|
tag |
|
|
|
tag-purple |
|
" |
|
href="/models?filter=t5" |
|
tag-id="t5" |
|
> |
|
<span> |
|
t5 |
|
</span> |
|
|
|
</a> |
|
<a class=" |
|
tag |
|
|
|
tag-purple |
|
" |
|
href="/models?filter=lm-head" |
|
tag-id="lm-head" |
|
> |
|
<span> |
|
lm-head |
|
</span> |
|
|
|
</a> |
|
<a class=" |
|
tag |
|
|
|
tag-purple |
|
" |
|
href="/models?filter=seq2seq" |
|
tag-id="seq2seq" |
|
> |
|
<span> |
|
seq2seq |
|
</span> |
|
|
|
</a> |
|
<a class=" |
|
tag |
|
|
|
tag-purple |
|
" |
|
href="/models?filter=protein language model" |
|
tag-id="protein language model" |
|
> |
|
<span> |
|
protein language model |
|
</span> |
|
|
|
</a> |
|
</div> |
|
<div class="border-b border-gray-100"> |
|
<div class="flex items-center justify-between"> |
|
<div class="flex items-center h-12 -mb-px overflow-x-auto overflow-y-hidden"> |
|
<a |
|
class="tab-alternate " |
|
href="/Rostlab/prot_t5_xl_bfd" |
|
> |
|
<svg |
|
alt="" |
|
class="mr-1.5 text-gray-400" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 24 24" |
|
> |
|
<path |
|
class="uim-quaternary" |
|
d="M20.23 7.24L12 12L3.77 7.24a1.98 1.98 0 0 1 .7-.71L11 2.76c.62-.35 1.38-.35 2 0l6.53 3.77c.29.173.531.418.7.71z" |
|
opacity=".25" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-tertiary" |
|
d="M12 12v9.5a2.09 2.09 0 0 1-.91-.21L4.5 17.48a2.003 2.003 0 0 1-1-1.73v-7.5a2.06 2.06 0 0 1 .27-1.01L12 12z" |
|
opacity=".5" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-primary" |
|
d="M20.5 8.25v7.5a2.003 2.003 0 0 1-1 1.73l-6.62 3.82c-.275.13-.576.198-.88.2V12l8.23-4.76c.175.308.268.656.27 1.01z" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
Model card |
|
</a> |
|
<a |
|
class="tab-alternate active" |
|
href="/Rostlab/prot_t5_xl_bfd/tree/main" |
|
> |
|
<svg |
|
alt="" |
|
class="mr-1.5 text-gray-400" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 24 24" |
|
> |
|
<path |
|
class="uim-tertiary" |
|
d="M21 19h-8a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2zm0-4h-8a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2zm0-8h-8a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2zm0 4h-8a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2z" |
|
opacity=".5" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
class="uim-primary" |
|
d="M9 19a1 1 0 0 1-1-1V6a1 1 0 0 1 2 0v12a1 1 0 0 1-1 1zm-6-4.333a1 1 0 0 1-.64-1.769L3.438 12l-1.078-.898a1 1 0 0 1 1.28-1.538l2 1.667a1 1 0 0 1 0 1.538l-2 1.667a.999.999 0 0 1-.64.231z" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
Files and versions |
|
</a> |
|
</div> |
|
<div class="relative hidden space-x-1.5 md:flex"> |
|
<div |
|
class="v2-dropdown relative " |
|
|
|
> |
|
<button |
|
class="v2-dropdown-button cursor-pointer btn text-sm" |
|
slot="trigger" |
|
type="button" |
|
> |
|
<svg |
|
alt="" |
|
class="mr-1.5" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 32 32" |
|
style="transform: rotate(360deg);" |
|
> |
|
<path |
|
d="M31 16l-7 7l-1.41-1.41L28.17 16l-5.58-5.59L24 9l7 7z" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
d="M1 16l7-7l1.41 1.41L3.83 16l5.58 5.59L8 23l-7-7z" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
d="M12.419 25.484L17.639 6l1.932.518L14.35 26z" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
Use in transformers |
|
</button><div |
|
class="v2-dropdown-menu hidden absolute mt-1 min-w-full bg-white rounded-xl overflow-hidden shadow-lg z-10 border border-gray-100 right-0 top-full " |
|
> |
|
<ul class="min-w-full w-auto"> |
|
<div class="v2-to-clipboard" style="width: 700px;"> |
|
<div class="border-b px-4 py-2 bg-gradient-to-r from-gray-50 to-white border-gray-200 flex justify-between items-center h-11"> |
|
<h3 class="font-semibold"> |
|
How to use from the |
|
<a target="_blank" href="https://github.com/huggingface/transformers">🤗/transformers</a> |
|
library: |
|
</h3> |
|
<button |
|
class="v2-to-clipboard-button text-sm underline flex items-center cursor-pointer text-gray-500" |
|
> |
|
<svg |
|
alt="" |
|
class="mr-1" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 32 32" |
|
> |
|
<path |
|
d="M25.7 9.3l-7-7A.908.908 0 0 0 18 2H8a2.006 2.006 0 0 0-2 2v24a2.006 2.006 0 0 0 2 2h16a2.006 2.006 0 0 0 2-2V10a.908.908 0 0 0-.3-.7zM18 4.4l5.6 5.6H18zM24 28H8V4h8v6a2.006 2.006 0 0 0 2 2h6z" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
Copy to clipboard |
|
</button> |
|
</div> |
|
<pre class="v2-to-clipboard-content whitespace-pre-line text-sm p-4 text-gray-700"> |
|
from transformers import AutoTokenizer, AutoModelWithLMHead |
|
|
|
tokenizer = AutoTokenizer.from_pretrained("Rostlab/prot_t5_xl_bfd") |
|
|
|
model = AutoModelWithLMHead.from_pretrained("Rostlab/prot_t5_xl_bfd") |
|
</pre> |
|
|
|
<div class="border-b px-4 py-2 bg-gradient-to-r from-gray-50 to-white border-gray-200 flex justify-between items-center h-11"> |
|
<h3 class="font-semibold"> |
|
Or just clone the model repo |
|
</h3> |
|
</div> |
|
<pre class="whitespace-pre-line text-sm p-4 text-gray-700"> |
|
git lfs install |
|
git clone https: |
|
<div class="text-gray-500 text-xs"> |
|
# if you want to clone without large files – just their pointers |
|
# prepend your git clone with the following env var: |
|
</div> |
|
GIT_LFS_SKIP_SMUDGE=1 |
|
</pre> |
|
|
|
</div> |
|
</ul> |
|
</div></div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</header> |
|
<div |
|
class="container relative space-y-4 flex flex-col md:grid md:space-y-0 overflow-hidden |
|
md:grid-cols-12 |
|
|
|
md:gap-6 |
|
|
|
" |
|
|
|
|
|
> |
|
<section class="pt-8 border-gray-100 col-span-full"> |
|
|
|
<header class="pb-4 flex items-center justify-between"> |
|
<div class="flex items-center"> |
|
<div |
|
class="v2-dropdown relative mr-6" |
|
|
|
> |
|
<button |
|
class="v2-dropdown-button cursor-pointer btn" |
|
slot="trigger" |
|
type="button" |
|
> |
|
<svg |
|
alt="" |
|
class="mr-1 text-gray-700 dark:text-gray-400" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 24 24" |
|
style="transform: rotate(360deg);" |
|
> |
|
<path |
|
d="M13 14c-3.36 0-4.46 1.35-4.82 2.24C9.25 16.7 10 17.76 10 19a3 3 0 0 1-3 3a3 3 0 0 1-3-3c0-1.31.83-2.42 2-2.83V7.83A2.99 2.99 0 0 1 4 5a3 3 0 0 1 3-3a3 3 0 0 1 3 3c0 1.31-.83 2.42-2 2.83v5.29c.88-.65 2.16-1.12 4-1.12c2.67 0 3.56-1.34 3.85-2.23A3.006 3.006 0 0 1 14 7a3 3 0 0 1 3-3a3 3 0 0 1 3 3c0 1.34-.88 2.5-2.09 2.86C17.65 11.29 16.68 14 13 14m-6 4a1 1 0 0 0-1 1a1 1 0 0 0 1 1a1 1 0 0 0 1-1a1 1 0 0 0-1-1M7 4a1 1 0 0 0-1 1a1 1 0 0 0 1 1a1 1 0 0 0 1-1a1 1 0 0 0-1-1m10 2a1 1 0 0 0-1 1a1 1 0 0 0 1 1a1 1 0 0 0 1-1a1 1 0 0 0-1-1z" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
main |
|
<svg |
|
alt="" |
|
class="text-gray-500" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 24 24" |
|
style="transform: rotate(360deg);" |
|
> |
|
<path d="M7 10l5 5l5-5z" fill="currentColor"></path> |
|
</svg> |
|
</button><div |
|
class="v2-dropdown-menu hidden absolute mt-1 min-w-full bg-white rounded-xl overflow-hidden shadow-lg z-10 border border-gray-100 right-0 top-full " |
|
> |
|
<ul class="min-w-full w-auto"> |
|
<li> |
|
<ul> |
|
<li> |
|
<div |
|
class="v2-dropdown-entry flex items-center hover:bg-gray-50 cursor-pointer truncate |
|
hover:underline |
|
|
|
|
|
" |
|
|
|
|
|
|
|
|
|
> |
|
<a |
|
class="px-3 py-1.5" |
|
href="/Rostlab/prot_t5_xl_bfd/blob/main/special_tokens_map.json" |
|
> |
|
main |
|
</a> |
|
</div> |
|
</li> |
|
</ul> |
|
</li> |
|
<li> |
|
<ul class="bg-yellow-50"> |
|
</ul> |
|
</li> |
|
</ul> |
|
</div></div> |
|
|
|
<a class="hover:underline text-gray-800 dark:text-gray-300" href="/Rostlab/prot_t5_xl_bfd/tree/main"> |
|
Rostlab/prot_t5_xl_bfd |
|
</a> |
|
<span class="text-gray-300 mx-1 font-light">/</span> |
|
|
|
<span class="font-light dark:text-gray-300">special_tokens_map.json</span> |
|
|
|
</div> |
|
|
|
<div class="flex justify-end"> |
|
</div> |
|
</header> |
|
|
|
<div class="border border-b-0 dark:border-gray-800 px-3 py-2 flex items-baseline rounded-t-lg bg-gradient-to-b from-white to-gray-100 dark:from-gray-800 dark:to-gray-900"> |
|
<div class="mr-5 truncate flex-none"> |
|
system |
|
</div> |
|
<a |
|
class="mr-4 font-mono text-sm text-gray-500 dark:text-gray-300 truncate hover:underline" |
|
href="/Rostlab/prot_t5_xl_bfd/commit/459da522a657f58fa70bdfc39afc7b0e3d247f3e" |
|
> |
|
Update special_tokens_map.json |
|
</a> |
|
<a |
|
class="text-sm border dark:border-gray-800 px-1.5 rounded bg-gray-50 dark:bg-gray-900 hover:underline" |
|
href="/Rostlab/prot_t5_xl_bfd/commit/459da522a657f58fa70bdfc39afc7b0e3d247f3e" |
|
> |
|
459da52 |
|
</a> |
|
<time |
|
datetime="2020-10-01T17:17:06" |
|
class="ml-auto hidden lg:block text-gray-500 dark:text-gray-400 truncate flex-none pl-2" |
|
> |
|
4 months ago |
|
</time> |
|
</div> |
|
|
|
<div class="flex items-center p-3 border dark:border-gray-800 text-sm text-gray-700 dark:bg-gray-900"> |
|
<a class="flex items-center hover:underline mr-4" href="/Rostlab/prot_t5_xl_bfd/raw/main/special_tokens_map.json"> |
|
<svg |
|
alt="" |
|
class="mr-1.5 " |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 32 32" |
|
style="transform: rotate(360deg);" |
|
> |
|
<path |
|
d="M31 16l-7 7l-1.41-1.41L28.17 16l-5.58-5.59L24 9l7 7z" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
d="M1 16l7-7l1.41 1.41L3.83 16l5.58 5.59L8 23l-7-7z" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
d="M12.419 25.484L17.639 6l1.932.518L14.35 26z" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
raw |
|
</a> |
|
<a class="flex items-center hover:underline mr-4" href="/Rostlab/prot_t5_xl_bfd/commits/main/special_tokens_map.json"> |
|
<svg |
|
alt="" |
|
class="mr-1.5" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 32 32" |
|
style="transform: rotate(360deg);" |
|
> |
|
<path |
|
d="M16 4C9.383 4 4 9.383 4 16s5.383 12 12 12s12-5.383 12-12S22.617 4 16 4zm0 2c5.535 0 10 4.465 10 10s-4.465 10-10 10S6 21.535 6 16S10.465 6 16 6zm-1 2v9h7v-2h-5V8z" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
history |
|
</a> |
|
<a class="flex items-center hover:underline mr-4" href="/Rostlab/prot_t5_xl_bfd/blame/main/special_tokens_map.json"> |
|
<svg |
|
alt="" |
|
class="mr-1.5" |
|
xmlns="http://www.w3.org/2000/svg" |
|
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
aria-hidden="true" |
|
focusable="false" |
|
role="img" |
|
class="" |
|
width="1em" |
|
height="1em" |
|
preserveAspectRatio="xMidYMid meet" |
|
viewBox="0 0 32 32" |
|
style="transform: rotate(360deg);" |
|
> |
|
<path |
|
d="M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2zm0 26a12 12 0 1 1 12-12a12 12 0 0 1-12 12z" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
d="M11.5 11a2.5 2.5 0 1 0 2.5 2.5a2.48 2.48 0 0 0-2.5-2.5z" |
|
fill="currentColor" |
|
></path> |
|
<path |
|
d="M20.5 11a2.5 2.5 0 1 0 2.5 2.5a2.48 2.48 0 0 0-2.5-2.5z" |
|
fill="currentColor" |
|
></path> |
|
</svg> |
|
blame |
|
</a> |
|
<div class="ml-auto dark:text-gray-300"> |
|
1,786 Bytes |
|
</div> |
|
</div> |
|
|
|
<div class="border border-t-0 rounded-b-lg dark:bg-gray-900 dark:border-gray-800 overflow-x-auto"> |
|
<table> |
|
<tr> |
|
<td class="align-top text-right select-none"> |
|
<pre class="p-3 text-sm overflow-x-auto">1</pre> |
|
</td> |
|
<td class="align-top w-full"> |
|
<pre class="p-3 text-sm overflow-x-auto">{<span class="hljs-attr">"eos_token"</span>: <span class="hljs-string">"</s>"</span>, <span class="hljs-attr">"unk_token"</span>: <span class="hljs-string">"<unk>"</span>, <span class="hljs-attr">"pad_token"</span>: <span class="hljs-string">"<pad>"</span>, <span class="hljs-attr">"additional_special_tokens"</span>: [<span class="hljs-string">"<extra_id_0>"</span>, <span class="hljs-string">"<extra_id_1>"</span>, <span class="hljs-string">"<extra_id_2>"</span>, <span class="hljs-string">"<extra_id_3>"</span>, <span class="hljs-string">"<extra_id_4>"</span>, <span class="hljs-string">"<extra_id_5>"</span>, <span class="hljs-string">"<extra_id_6>"</span>, <span class="hljs-string">"<extra_id_7>"</span>, <span class="hljs-string">"<extra_id_8>"</span>, <span class="hljs-string">"<extra_id_9>"</span>, <span class="hljs-string">"<extra_id_10>"</span>, <span class="hljs-string">"<extra_id_11>"</span>, <span class="hljs-string">"<extra_id_12>"</span>, <span class="hljs-string">"<extra_id_13>"</span>, <span class="hljs-string">"<extra_id_14>"</span>, <span class="hljs-string">"<extra_id_15>"</span>, <span class="hljs-string">"<extra_id_16>"</span>, <span class="hljs-string">"<extra_id_17>"</span>, <span class="hljs-string">"<extra_id_18>"</span>, <span class="hljs-string">"<extra_id_19>"</span>, <span class="hljs-string">"<extra_id_20>"</span>, <span class="hljs-string">"<extra_id_21>"</span>, <span class="hljs-string">"<extra_id_22>"</span>, <span class="hljs-string">"<extra_id_23>"</span>, <span class="hljs-string">"<extra_id_24>"</span>, <span class="hljs-string">"<extra_id_25>"</span>, <span class="hljs-string">"<extra_id_26>"</span>, <span class="hljs-string">"<extra_id_27>"</span>, <span class="hljs-string">"<extra_id_28>"</span>, <span class="hljs-string">"<extra_id_29>"</span>, <span class="hljs-string">"<extra_id_30>"</span>, <span class="hljs-string">"<extra_id_31>"</span>, <span class="hljs-string">"<extra_id_32>"</span>, <span class="hljs-string">"<extra_id_33>"</span>, <span class="hljs-string">"<extra_id_34>"</span>, <span class="hljs-string">"<extra_id_35>"</span>, <span class="hljs-string">"<extra_id_36>"</span>, <span class="hljs-string">"<extra_id_37>"</span>, <span class="hljs-string">"<extra_id_38>"</span>, <span class="hljs-string">"<extra_id_39>"</span>, <span class="hljs-string">"<extra_id_40>"</span>, <span class="hljs-string">"<extra_id_41>"</span>, <span class="hljs-string">"<extra_id_42>"</span>, <span class="hljs-string">"<extra_id_43>"</span>, <span class="hljs-string">"<extra_id_44>"</span>, <span class="hljs-string">"<extra_id_45>"</span>, <span class="hljs-string">"<extra_id_46>"</span>, <span class="hljs-string">"<extra_id_47>"</span>, <span class="hljs-string">"<extra_id_48>"</span>, <span class="hljs-string">"<extra_id_49>"</span>, <span class="hljs-string">"<extra_id_50>"</span>, <span class="hljs-string">"<extra_id_51>"</span>, <span class="hljs-string">"<extra_id_52>"</span>, <span class="hljs-string">"<extra_id_53>"</span>, <span class="hljs-string">"<extra_id_54>"</span>, <span class="hljs-string">"<extra_id_55>"</span>, <span class="hljs-string">"<extra_id_56>"</span>, <span class="hljs-string">"<extra_id_57>"</span>, <span class="hljs-string">"<extra_id_58>"</span>, <span class="hljs-string">"<extra_id_59>"</span>, <span class="hljs-string">"<extra_id_60>"</span>, <span class="hljs-string">"<extra_id_61>"</span>, <span class="hljs-string">"<extra_id_62>"</span>, <span class="hljs-string">"<extra_id_63>"</span>, <span class="hljs-string">"<extra_id_64>"</span>, <span class="hljs-string">"<extra_id_65>"</span>, <span class="hljs-string">"<extra_id_66>"</span>, <span class="hljs-string">"<extra_id_67>"</span>, <span class="hljs-string">"<extra_id_68>"</span>, <span class="hljs-string">"<extra_id_69>"</span>, <span class="hljs-string">"<extra_id_70>"</span>, <span class="hljs-string">"<extra_id_71>"</span>, <span class="hljs-string">"<extra_id_72>"</span>, <span class="hljs-string">"<extra_id_73>"</span>, <span class="hljs-string">"<extra_id_74>"</span>, <span class="hljs-string">"<extra_id_75>"</span>, <span class="hljs-string">"<extra_id_76>"</span>, <span class="hljs-string">"<extra_id_77>"</span>, <span class="hljs-string">"<extra_id_78>"</span>, <span class="hljs-string">"<extra_id_79>"</span>, <span class="hljs-string">"<extra_id_80>"</span>, <span class="hljs-string">"<extra_id_81>"</span>, <span class="hljs-string">"<extra_id_82>"</span>, <span class="hljs-string">"<extra_id_83>"</span>, <span class="hljs-string">"<extra_id_84>"</span>, <span class="hljs-string">"<extra_id_85>"</span>, <span class="hljs-string">"<extra_id_86>"</span>, <span class="hljs-string">"<extra_id_87>"</span>, <span class="hljs-string">"<extra_id_88>"</span>, <span class="hljs-string">"<extra_id_89>"</span>, <span class="hljs-string">"<extra_id_90>"</span>, <span class="hljs-string">"<extra_id_91>"</span>, <span class="hljs-string">"<extra_id_92>"</span>, <span class="hljs-string">"<extra_id_93>"</span>, <span class="hljs-string">"<extra_id_94>"</span>, <span class="hljs-string">"<extra_id_95>"</span>, <span class="hljs-string">"<extra_id_96>"</span>, <span class="hljs-string">"<extra_id_97>"</span>, <span class="hljs-string">"<extra_id_98>"</span>, <span class="hljs-string">"<extra_id_99>"</span>]}</pre> |
|
</td> |
|
</tr> |
|
</table> |
|
</div> |
|
</section> |
|
</div> |
|
</main> |
|
|
|
<script defer src="/front/build/bundle.04f8ca9.js"></script> |
|
<script> |
|
if (! ( |
|
['localhost', 'huggingface.test'].includes(window.location.hostname) |
|
|| window.location.hostname.includes('ngrok.io') |
|
)) { |
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
|
})(window,document,'script','https: |
|
ganalytics('create', 'UA-83738774-2', 'auto'); |
|
ganalytics('send', 'pageview'); |
|
} |
|
</script> |
|
</body> |
|
</html> |
|
|