Downloads · 30 days
22
1% of all-time downloads
WestCode1357/gpt-sw3-6.7b
gpt-sw3-6.7b is a text generation model from WestCode1357. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
GPT-SW3 6.7B base model. Text completion in Swedish, Norwegian, Danish, Icelandic, and English.
Downloads · 30 days
22
1% of all-time downloads
All-time downloads
2.6K
Public
Parameters
7.1B
56.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin28 GB · 50%
How the weights are stored.
F327B · 98%
From the Hugging Face model README
GPT-SW3 6.7B base model. Text completion in Swedish, Norwegian, Danish, Icelandic, and English.
Size: 6.7B | Type: base | Languages: Swedish, Norwegian, Danish, Icelandic, English
Community mirror of AI-Sweden-Models/gpt-sw3-6.7b
This model is provided as-is for research and educational purposes. Community redistribution of AI Sweden's GPT-SW3 under the same modified RAIL license.
You are responsible for any content you create using this model. Use responsibly.
The model may reflect biases from training data and may generate inaccurate, offensive, or inappropriate content. Neither the uploader nor AI Sweden are liable for downstream misuse. Review the AI Sweden RAIL license before any production deployment.
"You are responsible for any content you create using this model. Enjoy responsibly."
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "WestCode1357/gpt-sw3-6.7b"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16)
device = "mps" if torch.backends.mps.is_available() else "cuda" if torch.cuda.is_available() else "cpu"
model.to(device)
prompt = "Träd är fina för att"
inputs = tokenizer(prompt, return_tensors="pt").to(device)
out = model.generate(**inputs, max_new_tokens=150, do_sample=True, temperature=0.7)
print(tokenizer.decode(out[0]))
⚠️ These models contain extreme bias and are NOT intended for commercial use. For scientific and research use only.
GPT-SW3 was trained on large-scale web data and may reflect harmful societal biases present in that data. It has not been aligned or safety-tuned beyond its original training. Use strictly in controlled research settings. Do not deploy in any consumer-facing or commercial product without thorough evaluation and additional safety measures.
GPT-SW3 is developed by AI Sweden in collaboration with RISE and WASP WARA for Media and Language. Trained on 320B tokens: Swedish, Norwegian, Danish, Icelandic, English, and code.