Downloads · 30 days
17
6% of all-time downloads
Lap1official/Xylaria-1.8
Xylaria-1.8 is a text generation model from Lap1official. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Xylaria-1.8 is a large language model (LLM) designed for research purposes. It is based on a Transformer architecture and has been trained on a large dataset of text and code. This model is provided as-is for research…
Downloads · 30 days
17
6% of all-time downloads
All-time downloads
282
Public
Parameters
32.8B
129 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors131 GB · 100%
From the Hugging Face model README
Xylaria-1.8 is a large language model (LLM) designed for research purposes. It is based on a Transformer architecture and has been trained on a large dataset of text and code. This model is provided as-is for research and educational exploration.
custom_transformer)float32xylaria_tokenizerThis model is hosted on the Hugging Face Hub and can be loaded using the transformers library:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Lap1official/Xylaria-1.8"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=False)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
torch_dtype=torch.float32, # Use bfloat16 if supported
device_map="auto" # Use if you have a GPU
)
# Example usage (generation):
prompt = "The capital of France is"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device) # Move to GPU if available
outputs = model.generate(**inputs, max_new_tokens=20)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Important:
trust_remote_code=True when loading the model and tokenizer.bfloat16 (or float16 if bfloat16 is not supported) and device_map="auto" will significantly improve performance. If you do not have a GPU, you can remove those lines, but inference will be much slower.It should not be used for any malicious, harmful, or unethical activities.
This model is provided "as is", without any warranty of any kind, express or implied. The authors and contributors are not responsible for any consequences resulting from the use of this model.