Skip to content

This repository hosts a trained Large Language Model (LLM), derived from the foundational Meta LLaMA architecture. The model has been trained on domain-specific datasets for downstream NLP tasks.

License

Notifications You must be signed in to change notification settings

amithsourya/Script-Generate-4GL

Repository files navigation

Model Description

  • Developed by: Amith Sourya Sadineni
  • Model type: Text Generation
  • Language(s): Python
  • License: MIT
  • Finetuned from model: meta-llama/Llama-3.2-1B-Instruct

Model Sources

from huggingface_hub import notebook_login
notebook_login()

from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
from peft import PeftModel, PeftConfig

lora_path = "amithsourya/Script-Generate-4GL-V1.0"
peft_config = PeftConfig.from_pretrained(lora_path)

base_model = AutoModelForCausalLM.from_pretrained(
    peft_config.base_model_name_or_path,
    device_map="auto",
    torch_dtype="auto"
)

model = PeftModel.from_pretrained(base_model, lora_path)
tokenizer = AutoTokenizer.from_pretrained(peft_config.base_model_name_or_path)

pipe = pipeline("text-generation", model=model, tokenizer=tokenizer, device_map="auto")
prompt = "invoke a BO for read"
outputs = pipe(prompt, max_new_tokens=256)

print(outputs[0]["generated_text"])

Environmental Impact

Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

  • Hardware Type: T4 GPU

Example

image/png

image/png

About

This repository hosts a trained Large Language Model (LLM), derived from the foundational Meta LLaMA architecture. The model has been trained on domain-specific datasets for downstream NLP tasks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages