Qwen3 officially released
Qwen3 officially released
Qwen3: Think Deeper, Act Faster
Qwen3 officially released
Qwen3: Think Deeper, Act Faster
Context length is disappointing, but the fact that it trades blows with R1 despite being 30B MoE is insane. I'll wait and see if real-world performance matches up to benchmarks, but it sounds like a big deal.
Some kind of presentation talks about longer context: https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2F1nos591czhxe1.jpeg
Maybe its a work in progress, with Qwen 2.5 14B 1M (really 256K in that case) being the first test?
Thank goodness it will bounce a ball inside a spinning cube. I need that for my ball bouncing inside a spinning cube Etsy store.
Ill have you know I run a dual side business of selling ball-bouncing-in-polygon software as NFTs as well as counting the r-'s in various spellings of strawberry for the private defense sector...
there are 3 bouncing balls in strawberry
I'm actually more medium on this!
Uh, wow. That 30B A3B runs very fast on CPU alone.
Sadly it seems to be censored. I always try to make them write some fictional stories, exploring morally reprehensible acts, in order to test this. Or just lewd short-stories. And it straight out refuses immediately... Since it's a "thinking" model, I went ahead and messed with its thoughts, but that won't do it either: "I'm sorry, but I can't comply with that request. I have to follow my guidelines and maintain ethical standards. Let's talk about something else."
Edit: There is a base model available for that one, and it seems okay. It will autocomplete my stories and write a wikipedia article about things the government doesn't like. I wonder if this is going to help, though. Since all the magic is in the steps after the base model and I don't know whether there are any datasets available for the community to instruct-tune a thinking model...
You can use the same trick for the instruct models by abusing their prompt format. Prefill the thinking or answer sections with whatever you want, and they’ll continue it.
The classic trick is starting with “Sure!” though you can vary that depending on the content.
Yeah, thanks but I've already tried that. It will write a short amount of text but very quickly fall back to refusal. Both if I do it within the thinking step and also if I do it in the output. This time the alignment doesn't seem to be slapped on halfheartedly. It'll probably take some more effort. But I'm sure people will come up with some "uncensored" versions.
QwQ-32B-Q6_K vs Qwen3-30B-A3B-Q6_K on an i5-9500 with plenty of DDR4@2666:
Amt: 8003, Process:10.67s (17.52T/s), Generate:1408.00s (5.68T/s), Total: 1418.67s
Amt:3313, Process:107.21s (1.74T/s), Generate:3463.16s (0.96T/s), Total:3570.37s ::: spoiler QwQ-32B-Q6_K - Thoughts (11010 characters)
<think>
Okay, let's tackle this problem step by step. The user wants a script that sorts all .gguf files into subdirectories based on their publisher, which is derived from the URLs in the dl*.txt files. Hmm, first, I need to figure out how to extract the publisher from each URL.
The example URL given is https://huggingface.co/unsloth/Qwen3-30B-A3B-GGUF/resolve/main/Qwen3-30B-A3B-Q6_K.gguf?download=true
, and the publisher here is 'unsloth'. Looking at the URL structure, the publisher is the first path component after the domain. So, after 'huggingface.co', the next part is the publisher.
So, the plan is: for each .gguf file in the current directory, find its corresponding URL in any of the dl*.txt files. Then parse that URL to get the publisher, create a directory if it doesn't exist, and move the file there. But wait, how do I link each .gguf file to its URL? The filenames might not directly correspond to the URLs, so maybe the filenames are part of the URL paths?
Alternatively, perhaps each line in the dl*.txt files contains a URL that ends with the filename. So, the filename is the last part of the URL before any query parameters. For example, in the example URL, the filename is Qwen3-30B-A3B-Q6_K.gguf. So, the script can look through all the dl*.txt files, parse each URL, extract the filename from the URL, and then check if that filename exists in the current directory. If it does, then we can get the publisher from that URL and move the file accordingly.
Wait, but the problem states that the URLs are in the dl files, and each .gguf file was downloaded from one of those URLs. So each .gguf file corresponds to exactly one URL in one of the dl files. Therefore, the script needs to:
But first, how to parse the URLs correctly. Let's think about splitting the URL. The example URL's path after the domain is '/unsloth/Qwen3-30B-A3B-GGUF/resolve/main/Qwen3-30B-A3B-Q6_K.gguf'. The first path component after the domain is 'unsloth', which is the publisher. So splitting the path by '/' and taking the second element (since the first is empty due to leading '/') would give the publisher.
For the filename, the last part of the path before any query parameters. So split the URL on '?' to get the path part, then split on '/' and take the last element.
Potential edge cases: URLs with different domains? The example uses huggingface.co, but maybe others could be present. But the problem says "the publisher can only be found in the URL used to originally download each .gguf file", so the structure should be consistent. So the first path component after the domain is always the publisher.
Now, steps for the script:
First, process all dl*.txt files. For each file:
How to do this in bash? Maybe using parameter expansion or cut.
Alternatively, using awk or sed. Let's think of code snippets.
Parsing the publisher:
Given a URL like 'https://huggingface.co/unsloth/...', the path starts after 'huggingface.co/'. So splitting the URL into parts after the domain.
Maybe using cut:
domain_part=$(echo $url | cut -d '/' -f 3) # gets huggingface.co path_part=$(echo $url | cut -d '/' -f 4-) # gets everything after the domain
Then the first element of path_part is the publisher. So split path_part on '/' again.
publisher=$(echo $path_part | cut -d '/' -f 1)
Wait, let's see:
For the example URL:
Original URL: https://huggingface.co/unsloth/Qwen3-30B-A3B-GGUF/resolve/main/Qwen3-30B-A3B-Q6_K.gguf?download=true
Breaking down:
After splitting by '/', the components are:
0: https: 1: 2: huggingface.co 3: unsloth 4: Qwen3-30B-A3B-GGUF 5: resolve 6: main 7: Qwen3-30B-A3B-Q6_K.gguf?download=true
Wait, actually, the URL is split into parts by the slashes. The third component (index 2 if starting from 0) is huggingface.co. The fourth component (index 3) is unsloth, which is the publisher.
So, to get the publisher, we can take the 4th field when splitting by '/'.
Wait, perhaps using:
publisher=$(echo $url | awk -F/ '{print $4}')
Yes, because:
The URL is split into fields by '/', so $4 would be 'unsloth'.
Similarly, for the filename:
The filename is the last part before any '?', take the first part, then split on '/' and take the last element. Alternatively, using basename:
filename=$(basename $(echo $url | cut -d '?' -f1))
Yes, that's better. For example, the URL part before ? is:
https://huggingface.co/unsloth/Qwen3-30B-A3B-GGUF/resolve/main/Qwen3-30B-A3B-Q6_K.gguf
basename of that is "Qwen3-30B-A3B-Q6_K.gguf".
So putting it all together, for each URL line:
publisher=$(echo "$url" | awk -F/ '{print $4}') filename=$(basename "$(echo "$url" | cut -d '?' -f1)")
Then, we can build an associative array (in bash) mapping filenames to publishers.
Once all URLs are processed, we can loop over the .gguf files in the current directory. For each file:
Now, in bash, associative arrays can be used. Let's structure the code:
First, read all the dl files.
declare -A publisher_map
for dlfile in dl*.txt; do while IFS= read -r line; do # Ignore comments and empty lines if [[ $line == * || -z $line ]]; then continue fi url="$line"
# Extract publisher publisher=$(echo "$url" | awk -F/ '{print $4}') # Extract filename fname=$(basename "$(echo "$url" | cut -d '?' -f1)") # Store in the map publisher_map["$fname"]=$publisher done < "$dlfile"
done
Then, process each .gguf file:
for file in *.gguf; do if [[ ! -f $file ]]; then continue fi fname=$(basename "$file")
if [[ -v publisher_map[$fname] ]]; then publisher=${publisher_map[$fname]} dir="$publisher" mkdir -p "$dir" mv -- "$file" "$dir/" echo "Moved $file to $dir" else echo "Warning: $file has no corresponding URL in dl files. Skipping." fi
done
Wait, but in bash, checking if a key exists in an associative array uses -v, so that part is okay.
But need to make sure that the filenames are exactly as they appear in the URL's path. For example, if the URL's filename has a different case, or maybe trailing spaces? Probably need to ensure exact matches.
Another thing: what about files that are not in any of the dl files? The problem says "all .gguf files", but perhaps some files were not downloaded via these URLs? The user might want those to be skipped, or maybe an error. But according to the problem statement, they need to be sorted into subdirectories based on their original download URLs, so files not present in any dl file ca [...trimmed because lemmy won't handle so many chars] :::
Does it have the same political views at the Chinese government
That's usually not an issue for local models, and if it is, someone will post-train it away real quick.