Views
No views yet
1from transformers import pipeline
2
3generator = pipeline("text-generation", model="username/llama3-htmlgen-unsloth", device="cuda")
4
5prompt = "Generate HTML code for a webpage with a header saying 'Welcome to My Portfolio' and a blue background."
6
7output = generator(prompt, max_new_tokens=200, return_full_text=False)[0]
8print(output["generated_text"])1@misc{llama3htmlgen2025,
2 title = {Llama3-HTMLGen-Unsloth: Fine-tuned Llama 3.2 for HTML Code Generation},
3 author = {Your Name},
4 year = {2025},
5 publisher = {Hugging Face},
6 howpublished = {\url{https://huggingface.co/username/llama3-htmlgen-unsloth}}
7}1@misc{vonwerra2022trl,
2 title = {{TRL: Transformer Reinforcement Learning}},
3 author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and others},
4 year = 2020,
5 journal = {GitHub repository},
6 publisher = {GitHub},
7 howpublished = {\url{https://github.com/huggingface/trl}}
8}