File size: 2,451 Bytes
6f52517
 
 
 
 
 
 
 
6d546b0
 
 
 
6f52517
 
d990db2
 
 
6d546b0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
license: mit
language:
- en
tags:
- pytorch
- custom-model
- hello-world
- demo
- example
library_name: transformers
pipeline_tag: text-generation
---

# Hello World AI Model

[![HuggingFace](https://img.shields.io/badge/huggingface-%23FFD21E.svg?style=for-the-badge&logo=huggingface&logoColor=white)](https://huggingface.co/vinothkannans/hello-world)

A simple demonstration model built with Hugging Face Transformers that always returns "Hello World". This model serves as a minimal example of creating custom models using the Transformers library.

## Model Description

The Hello World AI Model is a custom PyTorch model that extends `PreTrainedModel` from the Hugging Face Transformers library. It's designed as a learning example and template for building custom models.

- **Developed by:** Vinoth Kannan
- **Model type:** Custom PyTorch Model
- **Language(s):** English
- **License:** MIT

## Model Details

### Model Architecture

The model consists of:
- A single linear layer (`nn.Linear(1, 1)`) for demonstration purposes
- A forward method that returns `{"text": "Hello World"}` regardless of input

### Training

This is a demonstration model and does not require training. It's a static model that always returns the same output.

## Usage

### Using Transformers

```python
from transformers import AutoModel, AutoConfig

# Load the model
model = AutoModel.from_pretrained("vinothkannans/hello-world")
config = AutoConfig.from_pretrained("vinothkannans/hello-world")

# Use the model
output = model.forward()
print(output)  # {'text': 'Hello World'}
```

### Using PyTorch

```python
import torch
from transformers import AutoModel

model = AutoModel.from_pretrained("vinothkannans/hello-world")
model.eval()

with torch.no_grad():
    output = model.forward()
    print(output)  # {'text': 'Hello World'}
```

## Model Card Contact

For questions or issues, please contact [vinothkannans](https://huggingface.co/vinothkannans) on Hugging Face.

## Limitations

This is a demonstration model for the learing production purposes. It always returns the same output regardless of input.

## Citation

```bibtex
@misc{hello-world-model,
  author = {Vinoth Kannan},
  title = {Hello World AI Model},
  year = {2025},
  publisher = {Hugging Face},
  howpublished = {\url{https://huggingface.co/vinothkannans/hello-world}}
}
```

## License

This model is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.