{"id":487,"date":"2025-11-19T10:23:10","date_gmt":"2025-11-19T15:23:10","guid":{"rendered":"http:\/\/stephendavies.org\/nlp\/?p=487"},"modified":"2025-11-19T10:23:42","modified_gmt":"2025-11-19T15:23:42","slug":"hf-code-posted","status":"publish","type":"post","link":"http:\/\/stephendavies.org\/nlp\/index.php\/2025\/11\/19\/hf-code-posted\/","title":{"rendered":"HF code posted"},"content":{"rendered":"<p>I have pushed <a href=\"https:\/\/github.com\/divilian\/data470\/blob\/main\/hf_gpt2.py\">the code that used &#x1F917;&#8217;s <tt>gpt2<\/tt> model<\/a> to perform text generation, with various decoding options.<\/p>\n<p>(Btw, all over the docs and internet, you will see people referring to &#8220;the Hugging Face library and hub&#8221; simply by the character &#8220;&#x1F917;&#8221; with no other adornment. I find this cute, but also somewhat annoying, since it&#8217;s not easily type-able. The character is Unicode point hex 1F917 (decimal 129303) for those interested in typing it.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have pushed the code that used &#x1F917;&#8217;s gpt2 model to perform text generation, with various decoding options. (Btw, all over the docs and internet, you will see people referring to &#8220;the Hugging Face library and hub&#8221; simply by the character &#8220;&#x1F917;&#8221; with no other adornment. I find this cute, but also somewhat annoying, since [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[1],"tags":[],"class_list":["post-487","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/posts\/487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/comments?post=487"}],"version-history":[{"count":4,"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/posts\/487\/revisions"}],"predecessor-version":[{"id":491,"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/posts\/487\/revisions\/491"}],"wp:attachment":[{"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/media?parent=487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/categories?post=487"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/tags?post=487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}