Skip to content

davidakh/XML-GPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

XML-GPT

XML-GPT is a simple yet capable GPT that can be quickly and easily trained.

Important Considerations

  • XML-GPT does not always produce understandable text.
  • XML-GPT utilizes Apple's Metal in the main branch and Nvidia's CUDA in the cuda-old/cuda branch. XML-GPT does not currently natively support AMD's ROCm, but you could manually add it using the steps listed below.

Required Dependencies

  • $PyTorch^1$
  • Numpy
  • transformers
  • datasets
  • tiktoken
  • tqdm

To install these dependencies enter this code into your terminal:

With Default PyTorch

1 = install either the default version of PyTorch if using the main branch and Cuda version if using cuda-old/cuda branch.

Linux Only • How to add support for AMD's ROCm

  1. First of all make sure that you have the latest version of python installed.
  2. Install the appropriate version of PyTorch or Torch that supports ROCm by entering this command in the Command Prompt. Please Note: PyTorch with ROCm support is currently only available on Linux.
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.2.4
  1. And replace all instances of "mps" in model.py with "rocm"
  2. Run model.py

Please Note: Manually adding ROCm could have unexpected consiquences.

About

XML is a GPT.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages