License: This model is under a Non-commercial Bespoke License and governed by the Meta license. You should only use this repository if you have been granted access to the model by filling out this form, but have either lost your copy of the weights or encountered issues converting them to the Transformers format
Where to send comments: Instructions on how to provide feedback or comments on a model can be found by opening an issue in the Hugging Face community's model repository
Contact: For questions and comments about the model, please email contact@upstage.ai
Our model can handle up to 10k+ input tokens, thanks to the rope_scaling option
importtorchfromtransformersimportAutoModelForCausalLM,AutoTokenizer,TextStreamertokenizer=AutoTokenizer.from_pretrained("upstage/llama-30b-instruct-2048")model=AutoModelForCausalLM.from_pretrained("upstage/llama-30b-instruct-2048",device_map="auto",torch_dtype=torch.float16,load_in_8bit=True,rope_scaling={"type":"dynamic","factor":2}# allows handling of longer inputs)prompt="### User:\nThomas is healthy, but he has to go to the hospital. What could be the reasons?\n\n### Assistant:\n"inputs=tokenizer(prompt,return_tensors="pt").to(model.device)delinputs["token_type_ids"]streamer=TextStreamer(tokenizer,skip_prompt=True,skip_special_tokens=True)output=model.generate(**inputs,streamer=streamer,use_cache=True,max_new_tokens=float('inf'))output_text=tokenizer.decode(output[0],skip_special_tokens=True)
Hardware and Software
Hardware: We utilized an A100x8 * 1 for training our model
# clone the repository
git clone https://github.com/EleutherAI/lm-evaluation-harness.git
# check out the specific commit
git checkout b281b0921b636bc36ad05c0b0b0763bd6dd43463
# change to the repository directory
cd lm-evaluation-harness
Ethical Issues
Ethical Considerations
There were no ethical issues involved, as we did not include the benchmark test set or the training set in the model's training process
Contact Us
Why Upstage LLM?
Upstage's LLM research has yielded remarkable results. As of August 1st, our 70B model has reached the top spot in openLLM rankings, marking itself as the current leading performer globally. Recognizing the immense potential in implementing private LLM to actual businesses, we invite you to easily apply private LLM and fine-tune it with your own data. For a seamless and tailored solution, please do not hesitate to reach out to us. ► click here to contact