My models
Collection
6 items • Updated
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("altomek/Coding-34B-U6")
model = AutoModelForCausalLM.from_pretrained("altomek/Coding-34B-U6")
messages = [
{"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
intro music...
Today models are trained on code so much. Have to check how some old ones fare with some assistant bits added ;P
The following models were included in the merge:
The following YAML configuration was used to produce this model:
name: Coding-34B-U6-2
models:
- model: CodeLlama-34b-Instruct-hf-abliterated
- model: Samantha-1.11-CodeLlama-34b
- model: WizardLM-1.0-Uncensored-CodeLlama-34b
- model: CodeBooga-34B-v0.1
base_model: CodeLlama-34b-Instruct-hf-abliterated
merge_method: model_stock
dtype: float16
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="altomek/Coding-34B-U6") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)