• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 3 pages
Other

Info 300 Llm Demonstration And Analysis Assignment With Complete Solutions

Document preview thumbnail
Preview 1 out of 3 pages

INFO 300 LLM DEMONSTRATION AND ANALYSIS ASSIGNMENT WITH COMPLETE SOLUTIONS

Content preview

LLM Demonstration and Analysis Assignment
Introduction Sydney Chen

With its library of pre-trained models for a range of NLP tasks including text
classification, translation, and summarization, Hugging Face has become a leader in the field of
natural language processing (NLP). Modern machine learning models are now easier to deploy
thanks to the platform, which makes them available to researchers and developers. This paper
aims to demonstrate the deployment of a Hugging Face model in Google Colab and explore its
potential real-world applications.
Model Selection
The model selected for this demonstration is the facebook/bart-large-cnn, a transformer-
based summarization model from Hugging Face. BART (Bidirectional and Auto-Regressive
Transformers) is perfect for producing high-quality text summaries because it combines the
advantages of autoregressive and bidirectional transformers. Tasks like condensing lengthy texts,
like new articles or legal documents, into outputs that are clear and insightful are the main
applications for the model.
Bart’s architecture includes a denoising autoencoder approach, where it reconstructs
corrupted input sequences. This design makes it highly effective in reducing redundancy while
preserving the original context and meaning. Its pre-training on large datasets enables it to
generalize well across multiple domains.
Demonstration and Results
To deploy the facebook/bart-large-cnn model, Google Colab was used as the
development environment. Below are the steps and visuals to the model:
1. Installation of the Hugging Face library using the command: !pip install transformers
2. Importing the pipline function from the Hugging Face library to load the summarization
pipeline using the command: from transformers import pipeline and summarizer =
pipeline(“summarization”, model=’facebook/bart-large-cnn’).
3. Inputting an example text to test the summarization model. This is a snippet of the code
used: text = """New York (CNN) When Liana Barrientos was 23 years old, she got
married in Westchester County..."""
4. As a result, the model generated the following concise summary: Liana Barrientos, 39, is
charged with two counts of "offering a false instrument for filing in the first degree."
In total, she has been married 10 times, with nine of her marriages occurring between
1999 and 2002. She is believed to still be married to four men.
This demonstrates how the model can condense large amounts of data into meaningful insights.

Document information

Uploaded on
April 3, 2026
Number of pages
3
Written in
2025/2026
Type
Other
Person
Unknown
$14.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
millyphilip
3.7
(560)
Sold
2991
Followers
1963
Items
46812
Last sold
13 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions