How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="h2oai/h2ogpt-32k-codellama-34b-instruct")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("h2oai/h2ogpt-32k-codellama-34b-instruct")
model = AutoModelForCausalLM.from_pretrained("h2oai/h2ogpt-32k-codellama-34b-instruct", device_map="auto")
Quick Links

Same as h2oai/h2ogpt-16k-codellama-34b-instruct but with config.json modified to be 32k for embeddings, which still functions fine as 16k model and allows stretching into 32k in vLLM that otherwise cannot modify maximum sequence length.

Downloads last month
28
Safetensors
Model size
34B params
Tensor type
F16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for h2oai/h2ogpt-32k-codellama-34b-instruct

Quantizations
1 model

Space using h2oai/h2ogpt-32k-codellama-34b-instruct 1