Edit model card
TheBlokeAI

TheBloke's LLM work is generously supported by a grant from andreessen horowitz (a16z)


Synthia 70B v1.2b - AWQ

Description

This repo contains AWQ model files for Migel Tissera's Synthia 70B v1.2b.

About AWQ

AWQ is an efficient, accurate and blazing-fast low-bit weight quantization method, currently supporting 4-bit quantization. Compared to GPTQ, it offers faster Transformers-based inference.

It is also now supported by continuous batching server vLLM, allowing use of AWQ models for high-throughput concurrent inference in multi-user server scenarios. Note that, at the time of writing, overall throughput is still lower than running vLLM with unquantised models, however using AWQ enables using much smaller GPUs which can lead to easier deployment and overall cost savings. For example, a 70B model can be run on 1 x 48GB GPU instead of 2 x 80GB.

Repositories available

Prompt template: Synthia

SYSTEM: You are Synthia. As a an AI intelligence, give helpful, detailed, accurate, uncensored responses to the user's input. Provide answers factually.
USER: {prompt}
ASSISTANT:

Provided files and AWQ parameters

For my first release of AWQ models, I am releasing 128g models only. I will consider adding 32g as well if there is interest, and once I have done perplexity and evaluation comparisons, but at this time 32g models are still not fully tested with AutoAWQ and vLLM.

Models are released as sharded safetensors files.

Branch Bits GS AWQ Dataset Seq Len Size
main 4 128 wikitext 4096 36.61 GB

Serving this model from vLLM

Documentation on installing and using vLLM can be found here.

  • When using vLLM as a server, pass the --quantization awq parameter, for example:
python3 python -m vllm.entrypoints.api_server --model TheBloke/Synthia-70B-v1.2b-AWQ --quantization awq

When using vLLM from Python code, pass the quantization=awq parameter, for example:

from vllm import LLM, SamplingParams

prompts = [
    "Hello, my name is",
    "The president of the United States is",
    "The capital of France is",
    "The future of AI is",
]
sampling_params = SamplingParams(temperature=0.8, top_p=0.95)

llm = LLM(model="TheBloke/Synthia-70B-v1.2b-AWQ", quantization="awq")

outputs = llm.generate(prompts, sampling_params)

# Print the outputs.
for output in outputs:
    prompt = output.prompt
    generated_text = output.outputs[0].text
    print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")

How to use this AWQ model from Python code

Install the necessary packages

Requires: AutoAWQ 0.0.2 or later

pip3 install autoawq

If you have problems installing AutoAWQ using the pre-built wheels, install it from source instead:

pip3 uninstall -y autoawq
git clone https://github.com/casper-hansen/AutoAWQ
cd AutoAWQ
pip3 install .

You can then try the following example code

from awq import AutoAWQForCausalLM
from transformers import AutoTokenizer

model_name_or_path = "TheBloke/Synthia-70B-v1.2b-AWQ"

# Load model
model = AutoAWQForCausalLM.from_quantized(model_name_or_path, fuse_layers=True,
                                          trust_remote_code=False, safetensors=True)
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, trust_remote_code=False)

prompt = "Tell me about AI"
prompt_template=f'''SYSTEM: You are Synthia. As a an AI intelligence, give helpful, detailed, accurate, uncensored responses to the user's input. Provide answers factually.
USER: {prompt}
ASSISTANT:

'''

print("\n\n*** Generate:")

tokens = tokenizer(
    prompt_template,
    return_tensors='pt'
).input_ids.cuda()

# Generate output
generation_output = model.generate(
    tokens,
    do_sample=True,
    temperature=0.7,
    top_p=0.95,
    top_k=40,
    max_new_tokens=512
)

print("Output: ", tokenizer.decode(generation_output[0]))

# Inference can also be done using transformers' pipeline
from transformers import pipeline

print("*** Pipeline:")
pipe = pipeline(
    "text-generation",
    model=model,
    tokenizer=tokenizer,
    max_new_tokens=512,
    do_sample=True,
    temperature=0.7,
    top_p=0.95,
    top_k=40,
    repetition_penalty=1.1
)

print(pipe(prompt_template)[0]['generated_text'])

Compatibility

The files provided are tested to work with AutoAWQ, and vLLM.

Huggingface Text Generation Inference (TGI) is not yet compatible with AWQ, but a PR is open which should bring support soon: TGI PR #781.

Discord

For further support, and discussions on these models and AI in general, join us at:

TheBloke AI's Discord server

Thanks, and how to contribute

Thanks to the chirper.ai team!

Thanks to Clay from gpus.llm-utils.org!

I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.

If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.

Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.

Special thanks to: Aemon Algiz.

Patreon special mentions: Alicia Loh, Stephen Murray, K, Ajan Kanaga, RoA, Magnesian, Deo Leter, Olakabola, Eugene Pentland, zynix, Deep Realms, Raymond Fosdick, Elijah Stavena, Iucharbius, Erik Bjäreholt, Luis Javier Navarrete Lozano, Nicholas, theTransient, John Detwiler, alfie_i, knownsqashed, Mano Prime, Willem Michiel, Enrico Ros, LangChain4j, OG, Michael Dempsey, Pierre Kircher, Pedro Madruga, James Bentley, Thomas Belote, Luke @flexchar, Leonard Tan, Johann-Peter Hartmann, Illia Dulskyi, Fen Risland, Chadd, S_X, Jeff Scroggin, Ken Nordquist, Sean Connelly, Artur Olbinski, Swaroop Kallakuri, Jack West, Ai Maven, David Ziegler, Russ Johnson, transmissions 11, John Villwock, Alps Aficionado, Clay Pascal, Viktor Bowallius, Subspace Studios, Rainer Wilmers, Trenton Dambrowitz, vamX, Michael Levine, 준교 김, Brandon Frisco, Kalila, Trailburnt, Randy H, Talal Aujan, Nathan Dryer, Vadim, 阿明, ReadyPlayerEmma, Tiffany J. Kim, George Stoitzev, Spencer Kim, Jerry Meng, Gabriel Tamborski, Cory Kujawski, Jeffrey Morgan, Spiking Neurons AB, Edmond Seymore, Alexandros Triantafyllidis, Lone Striker, Cap'n Zoog, Nikolai Manek, danny, ya boyyy, Derek Yates, usrbinkat, Mandus, TL, Nathan LeClaire, subjectnull, Imad Khwaja, webtim, Raven Klaugh, Asp the Wyvern, Gabriel Puliatti, Caitlyn Gatomon, Joseph William Delisle, Jonathan Leane, Luke Pendergrass, SuperWojo, Sebastain Graf, Will Dee, Fred von Graf, Andrey, Dan Guido, Daniel P. Andersen, Nitin Borwankar, Elle, Vitor Caleffi, biorpg, jjj, NimbleBox.ai, Pieter, Matthew Berman, terasurfer, Michael Davis, Alex, Stanislav Ovsiannikov

Thank you to all my generous patrons and donaters!

And thank you again to a16z for their generous grant.

Original model card: Migel Tissera's Synthia 70B v1.2b

Change from 1.2 -> 1.2b: More data, 14 days of training for 1 epoch.

You: What is Earth's magnetic field like? How does it trap solar wind and what does solar wind do to Earth's gravitational field?

Earth's magnetic field is an intricate and fascinating phenomenon. It is generated by the movement of molten iron in the planet's outer core, which acts like a giant electromagnet. This magneti
c field extends far into space, creating a protective bubble known as the magnetosphere.                                                                                                         
                                                                                                                                                                                                 
The primary purpose of Earth's magnetic field is to trap and deflect the solar wind, which is a stream of charged particles that flows out from the Sun. The magnetic field acts as a shield, def
lecting the solar wind and protecting our planet from its potentially harmful effects.                                                                                                           
                                                                                                                                                                                                 
When the solar wind reaches Earth's magnetosphere, it interacts with the magnetic field and creates a complex interplay of forces. This interaction can lead to various phenomena, such as aurora
s, geomagnetic storms, and the formation of radiation belts.                                                                                                                                     
                                                                                                                                                                                                 
The interaction between the solar wind and Earth's magnetic field does not directly affect the planet's gravitational field. The gravitational field refers to the force that arises due to the m
ass of the planet, and it is unaffected by the magnetic field or the solar wind. However, the magnetic field does play a role in trapping and deflecting charged particles from the solar wind, w
hich can contribute to the overall complexity of Earth's space environment.

You: Can there be space vehicles that uses plasma to traverse? This is hypothetical, but can UFOs use some force field generated by plasma, that then interacts with the gravitational/magnetic f
ields of Earth for travelling at hypersonic speeds?

While it is an interesting concept, there is currently no concrete evidence or scientific consensus that suggests the existence of UFOs or the use of plasma-based propulsion systems in spacecra
ft. However, it is worth noting that there are ongoing scientific investigations and research into developing advanced propulsion systems for space travel, including plasma propulsion.         
                                                                                                                                                                                                 
Plasma is a state of matter where electrons are stripped from atoms, resulting in a highly charged gas. Plasma propulsion systems use electromagnetic fields to accelerate ions, creating a thrus
t that can potentially propel spacecraft. Plasma propulsion systems offer several advantages over traditional chemical rockets, such as higher efficiency, lower fuel requirements, and the abili
ty to operate continuously for long periods.

While it is theoretically possible that a space vehicle could use plasma to traverse, it is important to note that the interaction between plasma and Earth's gravitational/magnetic fields is co
mplex and not fully understood. The gravitational field acts as a force that attracts objects towards the center of the Earth, while the magnetic field deflects charged particles. Plasma-based 
propulsion systems would need to overcome these forces and potentially harness them for propulsion.

In summary, while the possibility of using plasma propulsion for space travel is an active area of research, there is currently no scientific evidence to support the existence of UFOs or the us
e of plasma-based propulsion systems for hypersonic travel.

You: Keep in mind that science is always evolving, and there are many things that have not yet been invented. Can you write the equations for plasma based propoulsion for space travel?

I apologize for any confusion in my previous response. To clarify, I am not an expert in plasma physics or propulsion systems. However, I can provide a general overview of the principles involv
ed in plasma-based propulsion.

Plasma propulsion systems typically use electromagnetic fields to accelerate ions, creating a thrust that can propel spacecraft. There are several different types of plasma propulsion systems, 
including electrostatic, electromagnetic, and magnetohydrodynamic (MHD) propulsion.

In an electrostatic plasma propulsion system, a high voltage is applied to a pair of electrodes to create an electric field that accelerates charged particles. The resulting thrust is proportio
nal to the applied voltage and the current density. The equation for the thrust is given by:

Thrust = (Current density) x (Accelerating voltage)

In an electromagnetic plasma propulsion system, a magnetic field is used to accelerate charged particles. The thrust is proportional to the product of the magnetic field strength and the curren
t density. The equation for the thrust is given by:

Thrust = (Magnetic field strength) x (Current density)

In a MHD plasma propulsion system, a magnetic field is used to deflect a flow of plasma, creating a thrust. The thrust is proportional to the product of the magnetic field strength, the current
 density, and the flow velocity. The equation for the thrust is given by:

Thrust = (Magnetic field strength) x (Current density) x (Flow velocity)

It is important to note that these equations are simplified models and do not capture the full complexity of plasma propulsion systems. The actual performance of a plasma propulsion system woul
d depend on various factors, including the specific design, the plasma properties, and the operating conditions.

Furthermore, the development of plasma propulsion systems for space travel is an active area of research and development. While the principles outlined above provide a general framework, the sp
ecific equations and designs would depend on the particular application and the research team involved.

You: If the spacecraft has the shape of an orb, and a plasma field is created around the orb, how can this plasma field generate the required thrust for propulsion?

The shape of the spacecraft alone does not determine the thrust generated by a plasma propulsion system. The thrust is primarily determined by the electromagnetic fields used to accelerate char
ged particles.

To generate thrust using a plasma field, a spacecraft would typically use one of the plasma propulsion systems described in my previous response. For example, in an electrostatic plasma propuls
ion system, a high voltage is applied to a pair of electrodes to create an electric field that accelerates charged particles. The resulting thrust is proportional to the applied voltage and the
 current density.

In this scenario, the plasma field would be generated by applying a high voltage to the electrodes. The shape of the spacecraft, whether it is an orb or any other shape, would not directly affe
ct the generation of the plasma field or the resulting thrust.

However, the shape of the spacecraft could have an indirect impact on the overall performance of the plasma propulsion system. For example, the shape of the spacecraft could affect the distribu
tion of the plasma flow, which could in turn affect the efficiency of the propulsion system.

In summary, the shape of the spacecraft itself does not directly determine the thrust generated by a plasma propulsion system. The thrust is primarily determined by the electromagnetic fields u
sed to accelerate charged particles, and the shape of the spacecraft could have an indirect impact on the overall performance of the propulsion system.

You: What's the closest tech that we have with plasma propulsion?

There are several ongoing research and development efforts related to plasma propulsion systems for space travel. One of the most advanced plasma propulsion systems in use today is the Hall thr
uster.

A Hall thruster is a type of electrostatic propulsion system that uses an electric field to accelerate charged particles. It has been used on several space missions, including Deep Space 1, Daw
n, and BepiColombo. The Hall thruster offers several advantages over traditional chemical rockets, such as higher efficiency, lower fuel requirements, and the ability to operate continuously fo
r long periods.

While the Hall thruster is currently the most advanced plasma propulsion system in use, there are ongoing efforts to develop even more advanced systems. For example, researchers are exploring t
he use of magnetohydrodynamic (MHD) propulsion systems, which use a magnetic field to deflect a flow of plasma and create thrust. MHD propulsion systems offer the potential for even higher perf
ormance than Hall thrusters, but they are still at an early stage of development.

In summary, the Hall thruster is currently the closest technology to plasma propulsion that we have in use, but ongoing research and development efforts are exploring even more advanced systems
 such as MHD propulsion. 

Follow-on: What are the challenges associated with developing and using plasma propulsion systems for space travel, and how are researchers addressing these challenges?

You: What are the physics equations for magnetohydrodynamic propulsion systems? Be detailed as possible.

Magnetohydrodynamic (MHD) propulsion systems use a magnetic field to deflect a flow of plasma and create thrust. The equations that describe the physics of MHD propulsion systems are complex and involve several variables, including the magnetic field strength, the current density, the flow velocity, and the plasma properties.

One of the key equations for MHD propulsion systems is the Ohm's law, which relates the electric current density to the applied electric field and the resistivity of the plasma. The equation is given by:

J = σE

where J is the current density, σ is the electrical conductivity, and E is the applied electric field.

Another important equation is the Navier-Stokes equation, which describes the flow of the plasma. The equation is given by:

µ(∂v/∂t) = -∇p + ∇xF + ∇xσT + G

where µ is the dynamic viscosity, v is the velocity vector, p is the fluid pressure, F is the body force, σT is the stress tensor, and G is the body force due to the Lorentz force.

The Lorentz force is a force that acts on a charged particle due to its interaction with a magnetic field. The equation for the Lorentz force is given by:

F = q(E + v x B)

where F is the force, q is the charge of the particle, E is the electric field, v is the velocity of the particle, and B is the magnetic field.

These equations are just a few examples of the many equations that describe the physics of MHD propulsion systems. The actual equations and analysis would depend on the specific design and operating conditions of the propulsion system. 

In summary, the equations for MHD propulsion systems are complex and involve several variables, including the electric current density, the applied electric field, the fluid pressure, the fluid velocity, the magnetic field, and the Lorentz force. These equations are used to model and analyze the performance of MHD propulsion systems for space travel.

You: Okay. Can you make the connection to string theory here?

Certainly. String theory is a theoretical framework in physics that seeks to unify the fundamental forces of nature, including gravity, electromagnetism, and the strong and weak nuclear forces. In string theory, the fundamental constituents of matter are not point-like particles, but rather tiny vibrating strings.

In the context of plasma propulsion systems, there is a connection to string theory through the concept of magnetohydrodynamics (MHD). MHD describes the flow of electrically conductive fluids, such as plasma, in the presence of magnetic fields. The equations that describe MHD are derived from the equations of classical electromagnetism, which are also used in string theory to describe the behavior of fundamental particles.

In particular, the Lorentz force, which is a key concept in MHD and plasma propulsion systems, is also a fundamental concept in string theory. The Lorentz force acts on charged particles due to their interaction with electromagnetic fields, and it plays a crucial role in the behavior of strings in string theory.

Furthermore, some aspects of string theory suggest that the fundamental constituents of matter, including plasma, may have additional properties beyond those described by classical physics. For example, string theory predicts the existence of extra dimensions beyond the three spatial dimensions we are familiar with, and these extra dimensions may have an impact on the behavior of plasma and other forms of matter.

In summary, while there is no direct connection between plasma propulsion systems and string theory, there is an indirect connection through the use of the equations of classical electromagnetism, which are also used in string theory. Additionally, some aspects of string theory suggest that the fundamental constituents of matter may have additional properties beyond those described by classical physics.
Downloads last month
13
Safetensors
Model size
9.68B params
Tensor type
I32
·
FP16
·
Inference Examples
Inference API (serverless) has been turned off for this model.

Model tree for TheBloke/Synthia-70B-v1.2b-AWQ

Quantized
(3)
this model