Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
English
gpt2
Text-Generation
text-generation-inference
Run this model with HF Jobs
Run SRDdev/ScriptForge on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/SRDdev/ScriptForge. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/SRDdev/ScriptForge on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/SRDdev/ScriptForge. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/SRDdev/ScriptForge. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use SRDdev/ScriptForge with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SRDdev/ScriptForge with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SRDdev/ScriptForge")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SRDdev/ScriptForge") model = AutoModelForCausalLM.from_pretrained("SRDdev/ScriptForge", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SRDdev/ScriptForge with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SRDdev/ScriptForge" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SRDdev/ScriptForge", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SRDdev/ScriptForge
- SGLang
How to use SRDdev/ScriptForge with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "SRDdev/ScriptForge" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SRDdev/ScriptForge", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "SRDdev/ScriptForge" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SRDdev/ScriptForge", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SRDdev/ScriptForge with Docker Model Runner:
docker model run hf.co/SRDdev/ScriptForge
Update README.md
Browse files7 unmodified lines8910111213141516171819202122232425262728293031323334353637381 unmodified line40414243444546474849507 unmodified lineswidget:- text: Introduction to Vertex AI Feature Storeexample_title: Example 1- text: Introduction to JAXexmaple_title: Example 2tags:- Text-Generation- Scripts---# Script_GPT## Model DetailsThe Script_GPT is a language model developed using the Hugging Face Transformers library. It is trained on a custom dataset of YouTube scripts and can be used to generate new scripts for YouTube videos.The model is based on the GPT architecture and has a total of 117M parameters.## Intended UseThe Script_GPT model is intended to be used for generating scripts for YouTube videos. It can be used by content creators, marketers, and other individuals who want to produce high-quality scripts for their YouTube channels.## Limitations and BiasThe Script_GPT model is trained on a custom dataset of YouTube scripts, which may not represent all possible types of videos on the platform. As a result, the model may have limitations when generating scripts for certain types of videos.Additionally, like all language models, the Script_GPT model may exhibit bias in its outputs based on the biases present in the training data. It is important to review and evaluate the model's outputs to ensure that they are free from bias and harmful content.## Training DataThe Script_GPT model was trained on a custom dataset of YouTube scripts, which was collected from a variety of sources, including popular YouTube channels and public scripts available online.The dataset consists of only 6 scripts. The scripts are biased towards the Youtuber Ali Abdala.## How to Use_Installation_To use the Script_GPT model, you first need to install the Hugging Face Transformers library:```pythonfrom transformers import AutoTokenizer, AutoModelForCausalLM1 unmodified linemodel = AutoModelForCausalLM.from_pretrained("SRDdev/Script_GPT")```_Generating Scripts_To generate scripts using the Script_GPT model, you can use the following code:```pythonfrom transformers import pipelinegenerator = pipeline('text-generation', model="SRDdev/Script_GPT",tokenizer="SRDdev/Script_GPT")text = generator("Write a Script on Deep Learning ", max_length=1000, do_sample=True)[0]['generated_text']print(text)```7 unmodified lines891011121314151617181920212223242526272829303132333435363738394041424344454647481 unmodified line505152535455565758596061626364656667686970717273747576777879807 unmodified lineswidget:- text: Introduction to Vertex AI Feature Storeexample_title: Example 1- text: What are Kubeflow Components?exmaple_title: Example 2tags:- Text-Generation---# SCRIPTGPTPretrained model on the English language using a causal language modeling (CLM) objective. It was introduced in[this paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf)and first released at [this page](https://openai.com/blog/better-language-models/).## Model descriptionScriptGPT is a language model trained on a dataset of 5,000 YouTube videos that explain artificial intelligence (AI) concepts.ScriptGPT is a Causal language transformer. The model resembles the GPT2 architecture,the model is a Causal Language model meaning it predicts the probability of a sequence of words based on the preceding words in the sequence.It generates a probability distribution over the next word given the previous words, without incorporating future words.The goal of ScriptGPT is to generate scripts for AI videos that are coherent, informative, and engaging.This can be useful for content creators who are looking for inspiration or who want to automate the process of generating video scripts.To use ScriptGPT, users can provide a prompt or a starting sentence, and the model will generate a sequence of words that follow the context and style of the training data.The current model is the smallest one with 124 million parameters (ScriptGPT)More models are coming soon...## Intended usesThe intended uses of ScriptGPT include generating scripts for videos that explain artificial intelligence concepts, providing inspiration for content creators, andautomating the process of generating video scripts.## How to useYou can use this model directly with a pipeline for text generation.1. __Load Model__```pythonfrom transformers import AutoTokenizer, AutoModelForCausalLM1 unmodified linemodel = AutoModelForCausalLM.from_pretrained("SRDdev/Script_GPT")```2. __Pipeline__```pythonfrom transformers import pipelinegenerator = pipeline('text-generation', model= model , tokenizer=tokenizer)context = "Introduction to Vertex AI Feature Store"length_to_generate = 200script = generator(context, max_length=length_to_generate, do_sample=True)[0]['generated_text']```<p style="opacity: 0.8">Keeping the context more technical and related to AI will generate better outputs</p>## Limitations and bias> The model is trained on Youtube Scripts and will work better for that. It may also generate random information and users should be aware of that and cross-validate the results.The used is linked [here](https://www.kaggle.com/datasets/jfcaro/5000-transcripts-of-youtube-ai-related-videos)## Citations```@model{Name=Shreyas Dixitframework=PytorchYear=Jan 2023Pipeline=text-generationGithub=https://github.com/SRDdevLinkedIn=https://www.linkedin.com/in/srddev}```
README.md+52-22