File size: 1,011 Bytes
333126d
 
 
 
 
 
 
 
 
 
f98cc3f
333126d
 
f98cc3f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
title: SmolLM2 135 Text Generator
emoji: 🐢
colorFrom: green
colorTo: green
sdk: streamlit
sdk_version: 1.41.1
app_file: app.py
pinned: false
license: apache-2.0
short_description: Text generation using SmolLM2-135 model
---

# SmolLM2-135 Text Generator

This is a Streamlit-based text generation application using a fine-tuned SmolLM2-135 model. The application allows users to:

- Input custom prompts
- Control the length of generated text
- Generate multiple text sequences
- View token information

## Features

- Interactive text input
- Adjustable text generation length
- Multiple sequence generation
- Real-time text generation
- Token information display

## Usage

1. Enter your prompt in the text area
2. Adjust the length of text to be generated
3. Select the number of sequences to generate
4. Click "Generate" to create text

## Technical Details

The application uses:
- SmolLM2-135 model architecture
- Tiktoken tokenizer
- PyTorch for model inference
- Streamlit for the user interface